Exception: ScripTTY::Exception::ConnectError
- Defined in:
- lib/scriptty/exception.rb
Overview
Raised when a connection error occurs
Instance Attribute Summary collapse
-
#orig_exception ⇒ Object
Returns the value of attribute orig_exception.
Instance Method Summary collapse
-
#initialize(exception) ⇒ ConnectError
constructor
A new instance of ConnectError.
Constructor Details
#initialize(exception) ⇒ ConnectError
Returns a new instance of ConnectError.
32 33 34 35 |
# File 'lib/scriptty/exception.rb', line 32 def initialize(exception) @orig_exception = exception super("Connect error (#{exception.class.name}): #{exception}") end |
Instance Attribute Details
#orig_exception ⇒ Object
Returns the value of attribute orig_exception.
31 32 33 |
# File 'lib/scriptty/exception.rb', line 31 def orig_exception @orig_exception end |