Exception: Oass::OASError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/oass/errors.rb

Direct Known Subclasses

NotFoundError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, options = {}) ⇒ OASError

Returns a new instance of OASError.



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

def initialize(message, options = {})
  super message
  @code = options[:code]
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



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

def code
  @code
end