# bandwidth # # This file was automatically generated by APIMATIC v2.0 # ( https://apimatic.io ). module Bandwidth # PathClientException class. class PathClientException < APIException # TODO: Write general description for this method # @return [String] attr_accessor :timestamp # TODO: Write general description for this method # @return [Integer] attr_accessor :status # TODO: Write general description for this method # @return [String] attr_accessor :error # TODO: Write general description for this method # @return [String] attr_accessor :message # TODO: Write general description for this method # @return [String] attr_accessor :path # 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) @timestamp = hash['timestamp'] @status = hash['status'] @error = hash['error'] @message = hash['message'] @path = hash['path'] end end end