Class: Daytona::ExecutionError
- Inherits:
-
Object
- Object
- Daytona::ExecutionError
- Defined in:
- lib/daytona/common/code_interpreter.rb
Overview
Represents an error that occurred during code execution
Instance Attribute Summary collapse
-
#name ⇒ String
readonly
The error type/class name (e.g., “ValueError”, “SyntaxError”).
-
#traceback ⇒ String
readonly
Full traceback of the error.
-
#value ⇒ String
readonly
The error value.
Instance Method Summary collapse
-
#initialize(name:, value:, traceback: '') ⇒ ExecutionError
constructor
A new instance of ExecutionError.
Constructor Details
#initialize(name:, value:, traceback: '') ⇒ ExecutionError
Returns a new instance of ExecutionError.
29 30 31 32 33 |
# File 'lib/daytona/common/code_interpreter.rb', line 29 def initialize(name:, value:, traceback: '') @name = name @value = value @traceback = traceback end |
Instance Attribute Details
#name ⇒ String (readonly)
Returns The error type/class name (e.g., “ValueError”, “SyntaxError”).
18 19 20 |
# File 'lib/daytona/common/code_interpreter.rb', line 18 def name @name end |
#traceback ⇒ String (readonly)
Returns Full traceback of the error.
24 25 26 |
# File 'lib/daytona/common/code_interpreter.rb', line 24 def traceback @traceback end |
#value ⇒ String (readonly)
Returns The error value.
21 22 23 |
# File 'lib/daytona/common/code_interpreter.rb', line 21 def value @value end |