Exception: FlexOps::AuthError

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

Instance Attribute Summary

Attributes inherited from Error

#code, #errors, #status

Instance Method Summary collapse

Constructor Details

#initialize(message = "Authentication required. Check your access token or API key.") ⇒ AuthError

Returns a new instance of AuthError.



22
23
24
# File 'lib/flexops/errors.rb', line 22

def initialize(message = "Authentication required. Check your access token or API key.")
  super(message, status: 401, code: "UNAUTHORIZED")
end