Skip to content

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 ​

UKomiApiException.constructor

Properties ​

cause? ​

ts
optional cause?: Error;

Optional underlying error that caused this exception

Inherited from ​

UKomiApiException.cause


code ​

ts
code: number;

HTTP status code or API error code

Inherited from ​

UKomiApiException.code


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 ​

UKomiApiException.details


fieldErrors ​

ts
readonly fieldErrors: Record<string, UKomiFieldError>;

flatFieldErrors ​

ts
readonly flatFieldErrors: Record<string, string>;