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