Exception: Place::APIException
- Inherits:
-
StandardError
- Object
- StandardError
- Place::APIException
- Defined in:
- lib/place/exceptions.rb
Direct Known Subclasses
Forbidden, InternalError, InvalidArguments, InvalidRequest, InvalidResponse, MethodNotAllowed, NotFound, TooManyRequests, Unauthorized
Class Attribute Summary collapse
-
.error_type ⇒ Object
readonly
Returns the value of attribute error_type.
-
.status_code ⇒ Object
readonly
Returns the value of attribute status_code.
Instance Attribute Summary collapse
-
#error_details ⇒ Object
Returns the value of attribute error_details.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(msg = nil, error_details = nil) ⇒ APIException
constructor
A new instance of APIException.
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_type ⇒ Object (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_code ⇒ Object (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_details ⇒ Object
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
.descendants ⇒ Object
12 13 14 |
# File 'lib/place/exceptions.rb', line 12 def self.descendants ObjectSpace.each_object(Class).select { |klass| klass < self } end |