Exception: LocaSMS::Exception
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- LocaSMS::Exception
- Defined in:
- lib/locasms/exception.rb
Overview
Common base exception
Instance Attribute Summary collapse
-
#action ⇒ Object
readonly
Returns the value of attribute action.
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
Instance Method Summary collapse
- #default_message ⇒ Object private
-
#initialize(data = {}) ⇒ Exception
constructor
A new instance of Exception.
Constructor Details
#initialize(data = {}) ⇒ Exception
Returns a new instance of Exception.
8 9 10 11 12 13 |
# File 'lib/locasms/exception.rb', line 8 def initialize(data = {}) @raw = data[:raw] @action = data[:data] super data[:message] || end |
Instance Attribute Details
#action ⇒ Object (readonly)
Returns the value of attribute action.
6 7 8 |
# File 'lib/locasms/exception.rb', line 6 def action @action end |
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
6 7 8 |
# File 'lib/locasms/exception.rb', line 6 def raw @raw end |
Instance Method Details
#default_message ⇒ Object (private)
17 18 19 |
# File 'lib/locasms/exception.rb', line 17 def nil end |