Sha256: ed93db9cf81e7bf71b16ec79efd42afbed9a08f7586cdb65a80b67d3891bcc31

Contents?: true

Size: 552 Bytes

Versions: 21

Compression:

Stored size: 552 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
  t.prepare_server!
  server_process do
    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

21 entries across 21 versions & 1 rubygems

Version Path
asir-1.2.1 example/ex10.rb
asir-1.2.0 example/ex10.rb
asir-1.1.12 example/ex10.rb
asir-1.1.11 example/ex10.rb
asir-1.1.10 example/ex10.rb
asir-1.1.9 example/ex10.rb
asir-1.1.8 example/ex10.rb
asir-1.1.7 example/ex10.rb
asir-1.1.6 example/ex10.rb
asir-1.1.5 example/ex10.rb
asir-1.1.4 example/ex10.rb
asir-1.1.3 example/ex10.rb
asir-1.1.2 example/ex10.rb
asir-1.1.1 example/ex10.rb
asir-1.1.0 example/ex10.rb
asir-1.0.8 example/ex10.rb
asir-1.0.7 example/ex10.rb
asir-1.0.6 example/ex10.rb
asir-1.0.5 example/ex10.rb
asir-1.0.4 example/ex10.rb