Exception: SmsOnRails::SmsError

Inherits:
Exception
  • Object
show all
Defined in:
lib/sms_on_rails/util/sms_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_statusObject (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