Sha256: ca86671b8c168caf49da44db43566516bac1d60e466bf6908f39d7c4d21c5c62

Contents?: true

Size: 554 Bytes

Versions: 9

Compression:

Stored size: 554 Bytes

Contents

# !SLIDE :capture_code_output true
# Socket service with forwarded exception.

require 'example_helper'
begin
  Email.asir.transport = t =
    ASIR::Transport::TcpSocket.new(:port => 30910)
  t.encoder =
    ASIR::Coder::Marshal.new
  server_process do
    t.prepare_server!
    t.run_server!
  end
  pr Email.asir.do_raise("Raise Me!")
rescue Exception => err
  pr [ :exception, err ]
ensure
  t.close; sleep 1; server_kill
end

# !SLIDE END
# EXPECT: : client process
# EXPECT: : server process
# EXPECT: : pr: [:exception, #<RuntimeError: Raise Me!>]

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
asir-1.2.11 example/ex10.rb
asir-1.2.10 example/ex10.rb
asir-1.2.9 example/ex10.rb
asir-1.2.8 example/ex10.rb
asir-1.2.7 example/ex10.rb
asir-1.2.6 example/ex10.rb
asir-1.2.5 example/ex10.rb
asir-1.2.3 example/ex10.rb
asir-1.2.2 example/ex10.rb