Class: TMS::Errors::ServerError

Inherits:
Object
  • Object
show all
Defined in:
lib/tms_client/errors.rb

Instance Method Summary collapse

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