class LittleGhost::StructuredResultError
Raised when structured output is absent, invalid, or exceeds safety limits.
Attributes
Declared schema name and validation messages returned by local checking.
Declared schema name and validation messages returned by local checking.
Public Class Methods
# File lib/little_ghost/errors.rb, line 29 def initialize(message, schema_name:, validation_errors: []) @schema_name = schema_name.to_s.freeze @validation_errors = Array(validation_errors).map(&:to_s).freeze super(message) end
Records the schema and freezes normalized validation messages.
Calls superclass method