Exception: Acapela::ServiceError
- Defined in:
- lib/acapela/error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message, code = '') ⇒ ServiceError
constructor
A new instance of ServiceError.
- #to_s ⇒ Object
Constructor Details
#initialize(message, code = '') ⇒ ServiceError
Returns a new instance of ServiceError.
23 24 25 26 |
# File 'lib/acapela/error.rb', line 23 def initialize(, code = '') super() @code = code end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
21 22 23 |
# File 'lib/acapela/error.rb', line 21 def code @code end |
Instance Method Details
#to_s ⇒ Object
28 29 30 |
# File 'lib/acapela/error.rb', line 28 def to_s "Code: #{code}, Message: #{super}" end |