Exception: ScripTTY::Exception::ConnectError

Inherits:
Base
  • Object
show all
Defined in:
lib/scriptty/exception.rb

Overview

Raised when a connection error occurs

Instance Attribute Summary collapse

Instance Method Summary collapse

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_exceptionObject

Returns the value of attribute orig_exception.



31
32
33
# File 'lib/scriptty/exception.rb', line 31

def orig_exception
  @orig_exception
end