Exception: Farscape::Exceptions::ProtocolException
- Inherits:
-
IOError
- Object
- IOError
- Farscape::Exceptions::ProtocolException
- Defined in:
- lib/farscape/errors.rb
Direct Known Subclasses
BadGateway, BadRequest, Conflict, ExpectationFailed, Forbidden, GatewayTimeout, Gone, ImaTeapot, InternalServerError, LengthRequired, MethodNotAllowed, NotAcceptable, NotFound, NotImplemented, PreconditionFailed, ProtocolVersionNotSupported, ProxyAuthenticationRequired, RequestEntityTooLarge, RequestTimeout, RequestUriTooLong, RequestedRangeNotSatisfiable, ServiceUnavailable, Unauthorized, UnprocessableEntity, UnsupportedMediaType
Instance Attribute Summary collapse
-
#representor ⇒ Object
readonly
Returns the value of attribute representor.
Instance Method Summary collapse
- #error_description ⇒ Object
-
#initialize(representor) ⇒ ProtocolException
constructor
A new instance of ProtocolException.
- #message ⇒ Object
Constructor Details
#initialize(representor) ⇒ ProtocolException
Returns a new instance of ProtocolException.
8 9 10 |
# File 'lib/farscape/errors.rb', line 8 def initialize(representor) @representor = representor end |
Instance Attribute Details
#representor ⇒ Object (readonly)
Returns the value of attribute representor.
6 7 8 |
# File 'lib/farscape/errors.rb', line 6 def representor @representor end |
Instance Method Details
#error_description ⇒ Object
16 17 18 |
# File 'lib/farscape/errors.rb', line 16 def error_description 'Unknown Error' end |
#message ⇒ Object
12 13 14 |
# File 'lib/farscape/errors.rb', line 12 def @representor.representor.to_hash end |