Exception: Ovh::Http2sms::MessageLengthError
- Defined in:
- lib/ovh/http2sms/errors.rb
Overview
Raised when message length exceeds SMS limits
Instance Attribute Summary collapse
-
#encoding ⇒ Symbol
readonly
Encoding type (:gsm or :unicode).
-
#length ⇒ Integer
readonly
Actual message length.
-
#max_length ⇒ Integer
readonly
Maximum allowed length.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message = "Message length error", encoding: nil, length: nil, max_length: nil, **options) ⇒ MessageLengthError
constructor
A new instance of MessageLengthError.
Constructor Details
#initialize(message = "Message length error", encoding: nil, length: nil, max_length: nil, **options) ⇒ MessageLengthError
92 93 94 95 96 97 |
# File 'lib/ovh/http2sms/errors.rb', line 92 def initialize( = "Message length error", encoding: nil, length: nil, max_length: nil, **) @encoding = encoding @length = length @max_length = max_length super(, **) end |
Instance Attribute Details
#encoding ⇒ Symbol (readonly)
84 85 86 |
# File 'lib/ovh/http2sms/errors.rb', line 84 def encoding @encoding end |
#length ⇒ Integer (readonly)
87 88 89 |
# File 'lib/ovh/http2sms/errors.rb', line 87 def length @length end |
#max_length ⇒ Integer (readonly)
90 91 92 |
# File 'lib/ovh/http2sms/errors.rb', line 90 def max_length @max_length end |