/** * Copyright 2024 Angus.Fenying * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /// /** * The base class of all HttpClient errors. */ export declare abstract class AbstractHttpClientError extends Error { context: Record; readonly origin: unknown; /** * The unique identifier of the exception. */ static id: string; /** * The description message of the exception. */ static message: string; /** * The context of the exception. */ static context?: Record; constructor(context?: Record, origin?: unknown); } export declare const E_EMPTY_AUTH_CREDENTIALS: { new (context?: Record, origin?: unknown): { context: Record; readonly origin: unknown; name: string; message: string; stack?: string | undefined; }; id: string; message: string; /** * The context of the exception. */ context?: Record | undefined; captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void; prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined; stackTraceLimit: number; }; export declare const E_UNKNOWN_AUTH_TYPE: { new (context?: Record, origin?: unknown): { context: Record; readonly origin: unknown; name: string; message: string; stack?: string | undefined; }; id: string; message: string; /** * The context of the exception. */ context?: Record | undefined; captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void; prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined; stackTraceLimit: number; }; export declare const E_NO_CONTENT_LENGTH: { new (context?: Record, origin?: unknown): { context: Record; readonly origin: unknown; name: string; message: string; stack?: string | undefined; }; id: string; message: string; /** * The context of the exception. */ context?: Record | undefined; captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void; prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined; stackTraceLimit: number; }; export declare const E_PROTOCOL_NOT_SUPPORTED: { new (context?: Record, origin?: unknown): { context: Record; readonly origin: unknown; name: string; message: string; stack?: string | undefined; }; id: string; message: string; /** * The context of the exception. */ context?: Record | undefined; captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void; prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined; stackTraceLimit: number; }; export declare const E_TOO_LARGE_RESPONSE_ENTITY: { new (context?: Record, origin?: unknown): { context: Record; readonly origin: unknown; name: string; message: string; stack?: string | undefined; }; id: string; message: string; /** * The context of the exception. */ context?: Record | undefined; captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void; prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined; stackTraceLimit: number; }; export declare const E_NO_RESPONSE_ENTITY: { new (context?: Record, origin?: unknown): { context: Record; readonly origin: unknown; name: string; message: string; stack?: string | undefined; }; id: string; message: string; /** * The context of the exception. */ context?: Record | undefined; captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void; prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined; stackTraceLimit: number; }; //# sourceMappingURL=Errors.d.ts.map