Exception: Ticketing::IoError

Inherits:
Error
  • Object
show all
Defined in:
lib/ticketing/errors.rb

Overview

A socket read or write failed. #cause_error carries the underlying error; when it is a ConnectionClosed the broker treats the drop as retryable.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cause) ⇒ IoError

Returns a new instance of IoError.



46
47
48
49
# File 'lib/ticketing/errors.rb', line 46

def initialize(cause)
  @cause_error = cause
  super("io error: #{cause}")
end

Instance Attribute Details

#cause_errorObject (readonly)

Returns the value of attribute cause_error.



44
45
46
# File 'lib/ticketing/errors.rb', line 44

def cause_error
  @cause_error
end