Class SeclaiAPIValidationError

Thrown when the API returns a validation error response (typically HTTP 422).

The validationError field contains the decoded validation payload when available.

Hierarchy (View Summary)

Constructors

  • Parameters

    • opts: {
          message: string;
          method: string;
          responseText: undefined | string;
          statusCode: number;
          url: string;
          validationError: unknown;
      }

    Returns SeclaiAPIValidationError

Properties

method: string

HTTP method used for the request.

responseText: undefined | string

Best-effort response body text (if available).

statusCode: number

HTTP status code returned by the API.

url: string

Full request URL.

validationError: unknown

Parsed validation error payload (best-effort).