Skip to content

Class: UKomiApiException

Exception thrown when the U-KOMI API returns an error response. Contains the HTTP status code and error message from the API.

Extends

Extended by

Constructors

Constructor

ts
new UKomiApiException(
   code: number, 
   message: string, 
   cause?: Error, 
   details?: unknown): UKomiApiException;

Parameters

code

number

message

string

cause?

Error

details?

unknown

Returns

UKomiApiException

Overrides

UKomiException.constructor

Properties

cause?

ts
optional cause?: Error;

Optional underlying error that caused this exception

Inherited from

UKomiException.cause


code

ts
code: number;

HTTP status code or API error 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.