Skip to content

@awssolutions/gen-ai-evaluation-toolkit-ts-client


@awssolutions/gen-ai-evaluation-toolkit-ts-client / ValidationException

Class: ValidationException

A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.

Extends

Constructors

Constructor

new ValidationException(opts): ValidationException

Internal

Parameters

opts

__ExceptionOptionType\<ValidationException, GenAiEvaluationToolkitServiceException>

Returns

ValidationException

Overrides

GenAiEvaluationToolkitServiceException.constructor

Properties

$fault

readonly $fault: "client"

Overrides

__BaseException.$fault


fieldList?

optional fieldList?: ValidationExceptionField[]

A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.


name

readonly name: "ValidationException"

Overrides

__BaseException.name