Domain Context
Classes
Classes
DomainContextError
Base error class for domain context validation errors. Provides structured error responses with HTTP status codes.
Constructor
constructor(message: string, code: string, httpStatus?: number)
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
message | string | Yes | |
code | string | Yes | |
httpStatus | number | No |
Methods
toJSON
toJSON(): { error: string; message: string; status: number; }
Returns:
{ error: string; message: string; status: number; } -
MissingDomainIdError
Thrown when domainId is missing or has a placeholder value. domainId is REQUIRED - it's extracted from JWT by Kong gateway.
Constructor
constructor()