Exception: Interceptors::AuthError

Inherits:
AppError
  • Object
show all
Defined in:
lib/interceptors/auth_error.rb

Instance Attribute Summary

Attributes inherited from AppError

#code, #details, #http_status

Instance Method Summary collapse

Methods inherited from AppError

#to_h

Constructor Details

#initialize(message: "Unauthorized", code: "unauthorized", http_status: 401, details: {}) ⇒ AuthError

Returns a new instance of AuthError.



5
6
7
# File 'lib/interceptors/auth_error.rb', line 5

def initialize(message: "Unauthorized", code: "unauthorized", http_status: 401, details: {})
  super(message, code: code, http_status: http_status, details: details)
end