Exception: Octoryn::StructuredOutputError
- Defined in:
- lib/octoryn/errors.rb
Overview
Raised when structured output is invalid JSON or violates its schema.
Instance Attribute Summary collapse
-
#raw_output ⇒ Object
readonly
Returns the value of attribute raw_output.
-
#validation_errors ⇒ Object
readonly
Returns the value of attribute validation_errors.
Instance Method Summary collapse
-
#initialize(message, raw_output:, validation_errors: []) ⇒ StructuredOutputError
constructor
A new instance of StructuredOutputError.
Constructor Details
#initialize(message, raw_output:, validation_errors: []) ⇒ StructuredOutputError
Returns a new instance of StructuredOutputError.
25 26 27 28 29 |
# File 'lib/octoryn/errors.rb', line 25 def initialize(, raw_output:, validation_errors: []) super() @raw_output = raw_output @validation_errors = validation_errors end |
Instance Attribute Details
#raw_output ⇒ Object (readonly)
Returns the value of attribute raw_output.
23 24 25 |
# File 'lib/octoryn/errors.rb', line 23 def raw_output @raw_output end |
#validation_errors ⇒ Object (readonly)
Returns the value of attribute validation_errors.
23 24 25 |
# File 'lib/octoryn/errors.rb', line 23 def validation_errors @validation_errors end |