Exception: One::EmailDirect::EmailDirectException
- Inherits:
-
StandardError
- Object
- StandardError
- One::EmailDirect::EmailDirectException
- Defined in:
- lib/one/email_direct/exception.rb
Overview
Class to encapsulate EmailDirect web service errors.
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(code, message) ⇒ EmailDirectException
constructor
Constructs an EmailDirectException instance.
-
#to_s ⇒ String
Returns a string representation of this object.
Constructor Details
#initialize(code, message) ⇒ EmailDirectException
Constructs an EmailDirectException instance.
14 15 16 17 |
# File 'lib/one/email_direct/exception.rb', line 14 def initialize(code, ) @code = code @message = end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
5 6 7 |
# File 'lib/one/email_direct/exception.rb', line 5 def code @code end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
5 6 7 |
# File 'lib/one/email_direct/exception.rb', line 5 def @message end |
Instance Method Details
#to_s ⇒ String
Returns a string representation of this object.
24 25 26 |
# File 'lib/one/email_direct/exception.rb', line 24 def to_s() '[%s] %s' % [@code, @message] end |