Exception: Discordrb::HTTPStatusException
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Discordrb::HTTPStatusException
- Defined in:
- lib/discordrb/exceptions.rb
Overview
Raised when a HTTP status code indicates a failure
Instance Attribute Summary collapse
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status) ⇒ HTTPStatusException
constructor
A new instance of HTTPStatusException.
Constructor Details
#initialize(status) ⇒ HTTPStatusException
Returns a new instance of HTTPStatusException.
8 9 10 |
# File 'lib/discordrb/exceptions.rb', line 8 def initialize(status) @status = status end |
Instance Attribute Details
#status ⇒ Object (readonly)
Returns the value of attribute status.
7 8 9 |
# File 'lib/discordrb/exceptions.rb', line 7 def status @status end |