Exception: OnSIP::OnSIPException

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

Direct Known Subclasses

OnSIPRequestException

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ OnSIPException

Returns a new instance of OnSIPException.



5
6
7
8
9
# File 'lib/onsip/exceptions.rb', line 5

def initialize(options = {})
  @options = options
  @message = @options[:message]
  @exception = @options[:exception]
end

Instance Attribute Details

#exceptionObject

Returns the value of attribute exception.



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

def exception
  @exception
end

#optionsObject

Returns the value of attribute options.



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

def options
  @options
end