Exception: Place::APIException

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

Class Attribute Summary collapse

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg = nil, error_details = nil) ⇒ APIException

Returns a new instance of APIException.



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

def initialize( msg = nil, error_details = nil )
  super(msg)
  @error_details = error_details
end

Class Attribute Details

.error_typeObject (readonly)

Returns the value of attribute error_type.



17
18
19
# File 'lib/place/exceptions.rb', line 17

def error_type
  @error_type
end

.status_codeObject (readonly)

Returns the value of attribute status_code.



17
18
19
# File 'lib/place/exceptions.rb', line 17

def status_code
  @status_code
end

Instance Attribute Details

#error_detailsObject

Returns the value of attribute error_details.



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

def error_details
  @error_details
end

Class Method Details

.descendantsObject



12
13
14
# File 'lib/place/exceptions.rb', line 12

def self.descendants
  ObjectSpace.each_object(Class).select { |klass| klass < self }
end