Exception: Toys::ContextualError
- Inherits:
-
StandardError
- Object
- StandardError
- Toys::ContextualError
- Defined in:
- core-docs/toys/errors.rb
Overview
Defined in the toys-core gem
A wrapper exception used to provide user-oriented context for an error thrown during tool execution.
Instance Attribute Summary collapse
-
#banner ⇒ String
readonly
An overall banner message.
-
#cause ⇒ ::StandardError
readonly
The underlying exception.
-
#config_line ⇒ Integer
readonly
The line number in the toys config file in which the error was detected.
-
#config_path ⇒ String
readonly
The path to the toys config file in which the error was detected.
-
#tool_args ⇒ Array<String>
readonly
The arguments passed to the tool that was running when the error occurred.
-
#tool_name ⇒ Array<String>
readonly
The full name of the tool that was running when the error occurred.
Instance Attribute Details
#banner ⇒ String (readonly)
An overall banner message
64 65 66 |
# File 'core-docs/toys/errors.rb', line 64 def @banner end |
#cause ⇒ ::StandardError (readonly)
The underlying exception
58 59 60 |
# File 'core-docs/toys/errors.rb', line 58 def cause @cause end |
#config_line ⇒ Integer (readonly)
The line number in the toys config file in which the error was detected
76 77 78 |
# File 'core-docs/toys/errors.rb', line 76 def config_line @config_line end |
#config_path ⇒ String (readonly)
The path to the toys config file in which the error was detected
70 71 72 |
# File 'core-docs/toys/errors.rb', line 70 def config_path @config_path end |
#tool_args ⇒ Array<String> (readonly)
The arguments passed to the tool that was running when the error occurred
88 89 90 |
# File 'core-docs/toys/errors.rb', line 88 def tool_args @tool_args end |
#tool_name ⇒ Array<String> (readonly)
The full name of the tool that was running when the error occurred
82 83 84 |
# File 'core-docs/toys/errors.rb', line 82 def tool_name @tool_name end |