Exception: Ovh::Http2sms::PhoneNumberError
- Defined in:
- lib/ovh/http2sms/errors.rb
Overview
Raised when phone number format is invalid
Instance Attribute Summary collapse
-
#phone_number ⇒ String?
readonly
The invalid phone number.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message = "Invalid phone number", phone_number: nil, **options) ⇒ PhoneNumberError
constructor
A new instance of PhoneNumberError.
Constructor Details
#initialize(message = "Invalid phone number", phone_number: nil, **options) ⇒ PhoneNumberError
Returns a new instance of PhoneNumberError.
108 109 110 111 |
# File 'lib/ovh/http2sms/errors.rb', line 108 def initialize( = "Invalid phone number", phone_number: nil, **) @phone_number = phone_number super(, **) end |
Instance Attribute Details
#phone_number ⇒ String? (readonly)
Returns The invalid phone number.
106 107 108 |
# File 'lib/ovh/http2sms/errors.rb', line 106 def phone_number @phone_number end |