# bandwidth # # This file was automatically generated by APIMATIC v2.0 # ( https://apimatic.io ). module Bandwidth # InvalidRequest class. class InvalidRequestException < APIException # An error message pertaining to what the issue could be # @return [String] attr_accessor :result # The constructor. # @param [String] The reason for raising an exception. # @param [HttpResponse] The HttpReponse of the API call. def initialize(reason, response) super(reason, response) hash = APIHelper.json_deserialize(@response.raw_body) unbox(hash) end # Populates this object by extracting properties from a hash. # @param [Hash] The deserialized response sent by the server in the # response body. def unbox(hash) @result = hash['result'] end end end