Exception: Kabk::UnauthorizedError

Inherits:
ApiError
  • Object
show all
Defined in:
lib/kabk/errors.rb

Instance Attribute Summary

Attributes inherited from ApiError

#code, #fields, #http_status

Instance Method Summary collapse

Methods inherited from ApiError

#to_h

Constructor Details

#initialize(message = "Authentication required") ⇒ UnauthorizedError

Returns a new instance of UnauthorizedError.



40
41
42
# File 'lib/kabk/errors.rb', line 40

def initialize(message = "Authentication required")
  super(message, code: "UNAUTHORIZED", http_status: 401)
end