Exception: Hivehook::APIError
- Inherits:
-
HivehookError
- Object
- StandardError
- HivehookError
- Hivehook::APIError
- Defined in:
- lib/hivehook/errors.rb
Direct Known Subclasses
AuthError, ConflictError, NotFoundError, RateLimitError, ServerError, ValidationError
Instance Attribute Summary collapse
-
#extensions ⇒ Object
readonly
Returns the value of attribute extensions.
-
#graphql_code ⇒ Object
readonly
Returns the value of attribute graphql_code.
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
Instance Method Summary collapse
-
#initialize(message, status_code = nil, extensions: nil, graphql_code: nil) ⇒ APIError
constructor
A new instance of APIError.
Constructor Details
#initialize(message, status_code = nil, extensions: nil, graphql_code: nil) ⇒ APIError
Returns a new instance of APIError.
9 10 11 12 13 14 |
# File 'lib/hivehook/errors.rb', line 9 def initialize(, status_code = nil, extensions: nil, graphql_code: nil) super() @status_code = status_code @extensions = extensions @graphql_code = graphql_code end |
Instance Attribute Details
#extensions ⇒ Object (readonly)
Returns the value of attribute extensions.
7 8 9 |
# File 'lib/hivehook/errors.rb', line 7 def extensions @extensions end |
#graphql_code ⇒ Object (readonly)
Returns the value of attribute graphql_code.
7 8 9 |
# File 'lib/hivehook/errors.rb', line 7 def graphql_code @graphql_code end |
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code.
7 8 9 |
# File 'lib/hivehook/errors.rb', line 7 def status_code @status_code end |