Exception: BrainzLab::AuthenticationError
- Defined in:
- lib/brainzlab/errors.rb
Overview
Raised when authentication fails due to invalid or expired credentials.
Constant Summary
Constants inherited from Error
Instance Attribute Summary
Attributes inherited from Error
#code, #context, #docs_url, #hint
Instance Method Summary collapse
-
#initialize(message = nil, hint: nil, docs_url: nil, code: nil, context: nil) ⇒ AuthenticationError
constructor
A new instance of AuthenticationError.
Methods inherited from Error
#as_json, #detailed_message, #inspect, #to_h, #to_s
Constructor Details
#initialize(message = nil, hint: nil, docs_url: nil, code: nil, context: nil) ⇒ AuthenticationError
Returns a new instance of AuthenticationError.
141 142 143 144 145 |
# File 'lib/brainzlab/errors.rb', line 141 def initialize( = nil, hint: nil, docs_url: nil, code: nil, context: nil) docs_url ||= "#{DOCS_BASE_URL}/sdk/ruby/authentication" code ||= 'authentication_error' super(, hint: hint, docs_url: docs_url, code: code, context: context) end |