Exception: E2B::BuildError
- Defined in:
- lib/e2b/errors.rb
Overview
Error raised when a template build fails or returns an invalid status
Direct Known Subclasses
Instance Attribute Summary collapse
-
#source_location ⇒ Object
readonly
Returns the value of attribute source_location.
-
#step ⇒ Object
readonly
Returns the value of attribute step.
Attributes inherited from E2BError
Instance Method Summary collapse
-
#initialize(message = nil, status_code: nil, headers: {}, step: nil, source_location: nil) ⇒ BuildError
constructor
A new instance of BuildError.
Constructor Details
#initialize(message = nil, status_code: nil, headers: {}, step: nil, source_location: nil) ⇒ BuildError
Returns a new instance of BuildError.
66 67 68 69 70 71 |
# File 'lib/e2b/errors.rb', line 66 def initialize( = nil, status_code: nil, headers: {}, step: nil, source_location: nil) @step = step @source_location = source_location super(, status_code: status_code, headers: headers) set_backtrace([source_location]) if source_location end |
Instance Attribute Details
#source_location ⇒ Object (readonly)
Returns the value of attribute source_location.
64 65 66 |
# File 'lib/e2b/errors.rb', line 64 def source_location @source_location end |
#step ⇒ Object (readonly)
Returns the value of attribute step.
64 65 66 |
# File 'lib/e2b/errors.rb', line 64 def step @step end |