lib/atol/errors.rb in atol-0.1.1 vs lib/atol/errors.rb in atol-0.1.2
- old
+ new
@@ -22,10 +22,11 @@
class StateMissingTokenError < StandardError; end
class StateNotExistTokenError < StandardError; end
class StateExpiredTokenError < StandardError; end
class StateMissingUuidError < StandardError; end
class StateNotFoundError < StandardError; end
+ class ZeroItemQuantityError < StandardError; end
ERRORS = Hash[
1 => BadJSONError,
2 => IncomingBadRequestError,
3 => IncomingOperationNotSupportError,
@@ -41,8 +42,9 @@
13 => StateNotExistTokenError,
14 => StateExpiredTokenError,
15 => StateMissingUuidError,
16 => StateNotFoundError,
22 => GroupCodeToTokenError,
- 23 => IsNullExternalIdError
+ 23 => IsNullExternalIdError,
+ -3804 => ZeroItemQuantityError
].freeze
end