Sha256: b382dceb6d0a799e05cfa067c549d8e0bc2ff864885b6396fd5686ab13071325
Contents?: true
Size: 1.29 KB
Versions: 2
Compression:
Stored size: 1.29 KB
Contents
# frozen_string_literal: true module Atol class MissingConfigError < StandardError; end class AuthBadRequestError < StandardError; end class AuthUserOrPasswordError < StandardError; end class ConfigExpectedError < StandardError; end class UnknownOperationError < StandardError; end class BadJSONError < StandardError; end class IncomingOperationNotSupportError < StandardError; end class IncomingMissingTokenError < StandardError; end class IncomingExpiredTokenError < StandardError; end class IncomingExistExternalIdError < StandardError; end class GroupCodeToTokenError < StandardError; end class EmptyClientContactError < StandardError; end class EmptySellItemsError < StandardError; end class IncomingValidationError < StandardError; end class StateMissingUuidError < StandardError; end class StateNotFoundError < StandardError; end class ZeroItemQuantityError < StandardError; end ERRORS = Hash[ 0 => BadJSONError, 10 => IncomingMissingTokenError, 11 => IncomingExpiredTokenError, 20 => GroupCodeToTokenError, 30 => StateMissingUuidError, 31 => IncomingOperationNotSupportError, 32 => IncomingValidationError, 33 => IncomingExistExternalIdError, 34 => StateNotFoundError, -3804 => ZeroItemQuantityError ].freeze end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
atol-0.8.1 | lib/atol/errors.rb |
atol-0.7.1 | lib/atol/errors.rb |