Class: TMS::Errors::ServerError
- Inherits:
-
Object
- Object
- TMS::Errors::ServerError
- Defined in:
- lib/tms_client/errors.rb
Instance Method Summary collapse
-
#initialize(response) ⇒ ServerError
constructor
A new instance of ServerError.
Constructor Details
#initialize(response) ⇒ ServerError
Returns a new instance of ServerError.
4 5 6 |
# File 'lib/tms_client/errors.rb', line 4 def initialize(response) super("TMS client encountered a server error: #{response.status} \n#{response.body}") end |