Exception: Cloudflare::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Cloudflare::Error
- Defined in:
- lib/cloudflare/errors.rb
Direct Known Subclasses
AuthenticationError, NotFoundError, RateLimitError, ServerError, ValidationError
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message = nil, status: nil, body: nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message = nil, status: nil, body: nil) ⇒ Error
Returns a new instance of Error.
5 6 7 8 9 |
# File 'lib/cloudflare/errors.rb', line 5 def initialize( = nil, status: nil, body: nil) super() @status = status @body = body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
3 4 5 |
# File 'lib/cloudflare/errors.rb', line 3 def body @body end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
3 4 5 |
# File 'lib/cloudflare/errors.rb', line 3 def status @status end |