Exception: SmsManager::SendingError

Inherits:
Error
  • Object
show all
Defined in:
lib/sms_manager/error/sending_error.rb

Instance Method Summary collapse

Constructor Details

#initialize(body) ⇒ SendingError

Returns a new instance of SendingError.



5
6
7
8
# File 'lib/sms_manager/error/sending_error.rb', line 5

def initialize(body)
  code = body.split('|').last.to_i
  super code_to_message(code)
end