Exception: Sipgate::Exception

Inherits:
Exception
  • Object
show all
Defined in:
lib/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, code) ⇒ Exception

Returns a new instance of Exception.



5
6
7
8
# File 'lib/error.rb', line 5

def initialize(message,code)
  @code = code
  super(message)
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



3
4
5
# File 'lib/error.rb', line 3

def code
  @code
end