Exception: ErrorHandler::Error
- Inherits:
-
StandardError
- Object
- StandardError
- ErrorHandler::Error
- Includes:
- Sms
- Defined in:
- lib/smsruby/error.rb
Overview
The Error class represent the error layer. Inherit from standard error class of ruby and allows to give a more specific description about produced errors
Direct Known Subclasses
CallError, ConfigError, FormatError, GeneralError, LocationError, OtherError, StatemachineError
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Reference the id of the current error.
-
#message ⇒ Object
readonly
Reference a string message description of the current error.
Instance Method Summary collapse
-
#initialize(id) ⇒ Error
constructor
Initialize all attributes for error class receiving the id error.
Constructor Details
#initialize(id) ⇒ Error
Initialize all attributes for error class receiving the id error. The printError function of the shared object is used to obtain the string message of the current error
21 22 23 24 |
# File 'lib/smsruby/error.rb', line 21 def initialize(id) @id = id = printError(id) end |
Instance Attribute Details
#id ⇒ Object (readonly)
Reference the id of the current error
12 13 14 |
# File 'lib/smsruby/error.rb', line 12 def id @id end |
#message ⇒ Object (readonly)
Reference a string message description of the current error
14 15 16 |
# File 'lib/smsruby/error.rb', line 14 def end |