Exception: Ovh::Http2sms::SenderNotFoundError
- Defined in:
- lib/ovh/http2sms/errors.rb
Overview
Raised when the sender does not exist (API status 241)
Instance Attribute Summary collapse
-
#sender ⇒ String?
readonly
The sender that was not found.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message = "Sender not found", sender: nil, **options) ⇒ SenderNotFoundError
constructor
A new instance of SenderNotFoundError.
Constructor Details
#initialize(message = "Sender not found", sender: nil, **options) ⇒ SenderNotFoundError
Returns a new instance of SenderNotFoundError.
128 129 130 131 |
# File 'lib/ovh/http2sms/errors.rb', line 128 def initialize( = "Sender not found", sender: nil, **) @sender = sender super(, **.merge(status_code: 241)) end |
Instance Attribute Details
#sender ⇒ String? (readonly)
Returns The sender that was not found.
126 127 128 |
# File 'lib/ovh/http2sms/errors.rb', line 126 def sender @sender end |