Exception: Ovh::Http2sms::AuthenticationError
- Defined in:
- lib/ovh/http2sms/errors.rb
Overview
Raised when authentication fails (API status 401)
Instance Attribute Summary
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message = "Authentication failed: IP not authorized", **options) ⇒ AuthenticationError
constructor
A new instance of AuthenticationError.
Constructor Details
#initialize(message = "Authentication failed: IP not authorized", **options) ⇒ AuthenticationError
Returns a new instance of AuthenticationError.
31 32 33 |
# File 'lib/ovh/http2sms/errors.rb', line 31 def initialize( = "Authentication failed: IP not authorized", **) super(, **.merge(status_code: 401)) end |