Exception: Octoryn::StructuredOutputError

Inherits:
Error
  • Object
show all
Defined in:
lib/octoryn/errors.rb

Overview

Raised when structured output is invalid JSON or violates its schema.

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message, raw_output:, validation_errors: [])
  super(message)
  @raw_output = raw_output
  @validation_errors = validation_errors
end

Instance Attribute Details

#raw_outputObject (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_errorsObject (readonly)

Returns the value of attribute validation_errors.



23
24
25
# File 'lib/octoryn/errors.rb', line 23

def validation_errors
  @validation_errors
end