Exception: LDA::ServerError
- Defined in:
- lib/lda_gov/error.rb
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) ⇒ ServerError
constructor
A new instance of ServerError.
Constructor Details
#initialize(message = nil, status: nil, body: nil) ⇒ ServerError
Returns a new instance of ServerError.
25 26 27 28 29 |
# File 'lib/lda_gov/error.rb', line 25 def initialize( = nil, status: nil, body: nil) @status = status @body = body super( || "Server error HTTP #{status}") end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
23 24 25 |
# File 'lib/lda_gov/error.rb', line 23 def body @body end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
23 24 25 |
# File 'lib/lda_gov/error.rb', line 23 def status @status end |