Exception: Creatary::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Creatary::Error
- Defined in:
- lib/creatary/error.rb
Overview
Custom error class for rescuing from all Creatary errors
Direct Known Subclasses
InvalidConsumerHandler, OAuthConsumerAttributesMissing, OAuthError, RequestNotAuthorized, ServiceUnavailable, UnexpectedError
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
Instance Method Summary collapse
-
#initialize(message, body = '') ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, body = '') ⇒ Error
Returns a new instance of Error.
6 7 8 9 |
# File 'lib/creatary/error.rb', line 6 def initialize(, body = '') @body = body super end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
4 5 6 |
# File 'lib/creatary/error.rb', line 4 def body @body end |