Exception: AgentsID::PermissionDeniedError
- Inherits:
-
AgentsIDError
- Object
- StandardError
- AgentsIDError
- AgentsID::PermissionDeniedError
- Defined in:
- lib/agentsid/errors.rb
Instance Attribute Summary collapse
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
-
#tool ⇒ Object
readonly
Returns the value of attribute tool.
Attributes inherited from AgentsIDError
Instance Method Summary collapse
-
#initialize(tool, reason) ⇒ PermissionDeniedError
constructor
A new instance of PermissionDeniedError.
Constructor Details
#initialize(tool, reason) ⇒ PermissionDeniedError
23 24 25 26 27 28 29 30 31 |
# File 'lib/agentsid/errors.rb', line 23 def initialize(tool, reason) @tool = tool @reason = reason super( "Permission denied for tool \"#{tool}\": #{reason}", code: "PERMISSION_DENIED", status_code: 403 ) end |
Instance Attribute Details
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
21 22 23 |
# File 'lib/agentsid/errors.rb', line 21 def reason @reason end |
#tool ⇒ Object (readonly)
Returns the value of attribute tool.
21 22 23 |
# File 'lib/agentsid/errors.rb', line 21 def tool @tool end |