Exception: IFormat::Error
- Inherits:
-
StandardError
- Object
- StandardError
- IFormat::Error
- Defined in:
- lib/iformat/error.rb
Overview
Error class for rescuing from all IFormat errors
Direct Known Subclasses
Defined Under Namespace
Classes: AuthorizationError, BadSessionId, BadUsernameOrPassword, BadUsernameOrPasswordOrPasswordsDifferent, ClientError, HeaderError, InsertCoin, InternalError, ItemError, LogoError, NotAllLinesHaveLinks, OrderAlreadyExists, OrderClosedNoLinksGenerated, OrderDeletedFromSystem, OrderNotFound, OrderWaitingForLinks, ResultTooBig, ServerError, UnknownError
Constant Summary collapse
- UNKNOWN_ERROR_STATUS =
0
- INTERNAL_ERROR_STATUS =
-1
- BAD_SESSION_ID_STATUS =
-101
- BAD_USERNAME_OR_PASSWORD_STATUS =
-102
- BAD_USERNAME_OR_PASSWORD_OR_PASSWORDS_DIFFERENT_STATUS =
-103
- ORDER_ALREADY_EXISTS_STATUS =
-1001
- HEADER_ERROR_STATUS =
-1002
- ITEM_ERROR_STATUS =
-1003
- LOGO_ERROR_STATUS =
-1004
- RESULT_TOO_BIG_STATUS =
-1005
- INSERT_COIN_STATUS =
-1006
- NOT_ALL_LINES_HAVE_LINKS_STATUS =
-1012
- ORDER_NOT_FOUND_STATUS =
-1013
- ORDER_DELETED_FROM_SYSTEM_STATUS =
-1014
- ORDER_CLOSED_NO_LINKS_GENERATED_STATUS =
-1015
- ORDER_WAITING_FOR_LINKS_STATUS =
-1016
Instance Attribute Summary collapse
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message, status = UNKNOWN_ERROR_STATUS) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, status = UNKNOWN_ERROR_STATUS) ⇒ Error
Returns a new instance of Error.
24 25 26 27 |
# File 'lib/iformat/error.rb', line 24 def initialize(, status = UNKNOWN_ERROR_STATUS) @status = status super() end |
Instance Attribute Details
#status ⇒ Object (readonly)
Returns the value of attribute status.
22 23 24 |
# File 'lib/iformat/error.rb', line 22 def status @status end |