Exception: Server::ClientError
- Inherits:
-
StandardError
- Object
- StandardError
- Server::ClientError
- Defined in:
- app/server.rb
Overview
An error message and status code.
Instance Attribute Summary collapse
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message, status: 400) ⇒ ClientError
constructor
A new instance of ClientError.
Constructor Details
#initialize(message, status: 400) ⇒ ClientError
Returns a new instance of ClientError.
33 34 35 36 |
# File 'app/server.rb', line 33 def initialize(, status: 400) super() @status = status end |
Instance Attribute Details
#status ⇒ Object (readonly)
Returns the value of attribute status.
31 32 33 |
# File 'app/server.rb', line 31 def status @status end |