Exception: PowerTrack::BadRequestError

Inherits:
PredefinedStatusPowerTrackError show all
Defined in:
lib/powertrack/errors.rb

Overview

Generally relates to poorly formatted JSON, and includes an “Invalid JSON” message in the response.

Instance Attribute Summary

Attributes inherited from BasePowerTrackError

#body, #status

Instance Method Summary collapse

Methods inherited from WithStatusPowerTrackError

build

Constructor Details

#initialize(message, body) ⇒ BadRequestError

Returns a new instance of BadRequestError.



64
65
66
# File 'lib/powertrack/errors.rb', line 64

def initialize(message, body)
  super(400, message, body)
end