Sha256: f021baf1271ccfdccc3804ee0ee8bc196d4bb6d6880fd19f0748523a5b343434
Contents?: true
Size: 752 Bytes
Versions: 10
Compression:
Stored size: 752 Bytes
Contents
module Vhx class VhxError < StandardError attr_reader :response_body, :response_status, :url, :message def initialize(response_body, response_status, url) @response_body = response_body @response_status = response_status @url = url @message = response_body.is_a?(Hash) ? response_body['message'] : response_body.to_s super(@message) end end class BadRequestError < VhxError; end class UnauthorizedError < VhxError; end class InvalidTokenError < VhxError; end class PaymentRequiredError < VhxError; end class NotFoundError < VhxError; end class NotAcceptableError < VhxError; end class ServerError < VhxError; end class InvalidResourceError < StandardError; end end
Version data entries
10 entries across 10 versions & 1 rubygems