Exception: CommandTower::Errors::Auth::SelfImpersonationError
- Inherits:
-
ValidationError
- Object
- StandardError
- CommandTower::Errors::ApplicationError
- ValidationError
- CommandTower::Errors::Auth::SelfImpersonationError
- Defined in:
- app/errors/command_tower/errors/auth/self_impersonation_error.rb
Instance Attribute Summary
Attributes inherited from CommandTower::Errors::ApplicationError
Instance Method Summary collapse
- #code ⇒ Object
-
#initialize ⇒ SelfImpersonationError
constructor
A new instance of SelfImpersonationError.
- #message ⇒ Object
Methods inherited from CommandTower::Errors::ApplicationError
Constructor Details
#initialize ⇒ SelfImpersonationError
Returns a new instance of SelfImpersonationError.
7 8 9 |
# File 'app/errors/command_tower/errors/auth/self_impersonation_error.rb', line 7 def initialize super(details: { target: "cannot_impersonate_self" }) end |
Instance Method Details
#code ⇒ Object
11 12 13 |
# File 'app/errors/command_tower/errors/auth/self_impersonation_error.rb', line 11 def code "self_impersonation_forbidden" end |
#message ⇒ Object
15 16 17 |
# File 'app/errors/command_tower/errors/auth/self_impersonation_error.rb', line 15 def "Cannot impersonate yourself" end |