/** * MCD (Multiple Custom Domains) specific error classes. * * Note: `BackchannelLogoutError` is renamed with `Mcd` prefix to avoid * collision with the identically-named class in `oauth-errors.ts`. * MCD configuration errors use the shared `InvalidConfigurationError` * from `oauth-errors.ts`. * * @module errors/mcd */ import { SdkError } from "./sdk-error.js"; /** * Error thrown when domain resolution fails during MCD initialization or request handling. * * This error is public and may be caught by application code. * * @public */ export declare class DomainResolutionError extends SdkError { cause?: Error | undefined; code: string; /** * Creates a new DomainResolutionError instance. * * @param message - A descriptive error message * @param cause - The underlying error that caused the resolution failure (optional) */ constructor(message?: string, cause?: Error | undefined); } /** * Error thrown when a domain hostname fails validation. * * This includes rejection of IP addresses, localhost, .local domains, paths, and ports. * This error is public and may be caught by application code. * * @public */ export declare class DomainValidationError extends SdkError { code: string; /** * Creates a new DomainValidationError instance. * * @param message - A descriptive error message */ constructor(message?: string); } /** * Error thrown when the issuer URL is invalid or cannot be resolved. * * This error is public and may be caught by application code. * * @public */ export declare class IssuerValidationError extends SdkError { expectedIssuer: string; actualIssuer: string; code: string; /** * Creates a new IssuerValidationError instance. * * @param expectedIssuer - The expected issuer URL * @param actualIssuer - The actual issuer URL from the token */ constructor(expectedIssuer: string, actualIssuer: string); } /** * Error thrown when a session's domain does not match the current request domain. * * This indicates a potential security issue where a user is attempting to use a session * created for a different domain. * * @public */ export declare class SessionDomainMismatchError extends SdkError { code: string; /** * Creates a new SessionDomainMismatchError instance. * * @param message - A descriptive error message */ constructor(message?: string); }