Class: UKomiFieldValidationException
Thrown when a review submission fails per-field validation. Inspect fieldErrors for the raw per-field payload (mixed strings / bucket objects). flatFieldErrors flattens buckets into single strings for simple display.
Extends
Constructors
Constructor
ts
new UKomiFieldValidationException(fieldErrors: Record<string, UKomiFieldError>, message?: string): UKomiFieldValidationException;Parameters
fieldErrors
Record<string, UKomiFieldError>
message?
string
Returns
UKomiFieldValidationException
Overrides
Properties
cause?
ts
optional cause?: Error;Optional underlying error that caused this exception
Inherited from
code
ts
code: number;HTTP status code or API error code
Inherited from
details?
ts
optional details?: unknown;Raw response body from the API. Shape is API-version dependent, not part of the stable surface — prefer the specialized exception subclasses.
Inherited from
fieldErrors
ts
readonly fieldErrors: Record<string, UKomiFieldError>;flatFieldErrors
ts
readonly flatFieldErrors: Record<string, string>;