Exception: SmsOnRails::SmsError
- Inherits:
-
Exception
- Object
- Exception
- SmsOnRails::SmsError
- Defined in:
- lib/sms_on_rails/util/sms_error.rb
Direct Known Subclasses
FatalSmsError, SmsOnRails::ServiceProviders::EmailGatewayInvalidSms
Instance Attribute Summary collapse
-
#sub_status ⇒ Object
readonly
Returns the value of attribute sub_status.
Instance Method Summary collapse
-
#initialize(msg, new_sub_status = nil) ⇒ SmsError
constructor
A new instance of SmsError.
Constructor Details
#initialize(msg, new_sub_status = nil) ⇒ SmsError
Returns a new instance of SmsError.
4 5 6 7 |
# File 'lib/sms_on_rails/util/sms_error.rb', line 4 def initialize(msg, new_sub_status = nil) super msg @sub_status = new_sub_status end |
Instance Attribute Details
#sub_status ⇒ Object (readonly)
Returns the value of attribute sub_status.
3 4 5 |
# File 'lib/sms_on_rails/util/sms_error.rb', line 3 def sub_status @sub_status end |