Exception: Ovh::Http2sms::AuthenticationError

Inherits:
Error
  • Object
show all
Defined in:
lib/ovh/http2sms/errors.rb

Overview

Raised when authentication fails (API status 401)

Examples:

raise AuthenticationError.new("IP not authorized", status_code: 401)

Instance Attribute Summary

Attributes inherited from Error

#raw_response, #status_code

Instance Method Summary collapse

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(message = "Authentication failed: IP not authorized", **options)
  super(message, **options.merge(status_code: 401))
end