Exception: ProxyTester::Exceptions::MyStandardError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/proxy_tester/exceptions.rb,
lib/proxy_tester/exceptions.rb

Direct Known Subclasses

DefaultError, InternalError, UserError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, cause = $!) ⇒ MyStandardError

Returns a new instance of MyStandardError.



10
11
12
13
# File 'lib/proxy_tester/exceptions.rb', line 10

def initialize(msg, cause = $!)
  super(msg)
  @cause = cause;
end

Instance Attribute Details

#causeObject (readonly)

Returns the value of attribute cause.



8
9
10
# File 'lib/proxy_tester/exceptions.rb', line 8

def cause
  @cause
end