@microsoft/kiota-abstractions
Version:
Core abstractions for kiota generated libraries in TypeScript and JavaScript
20 lines • 1.02 kB
TypeScript
/**
* -------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License.
* See License in the project root for license information.
* -------------------------------------------------------------------------------------------
*/
/** Parent interface for errors thrown by the client when receiving failed responses to its requests. */
export interface ApiError extends Error {
/** The status code for the error. */
responseStatusCode: number | undefined;
/** The Response Headers. */
responseHeaders: Record<string, string[]> | undefined;
}
/** Default error type used when no error mapping is registered for the status code */
export declare class DefaultApiError extends Error implements ApiError {
constructor(message?: string);
responseStatusCode: number | undefined;
responseHeaders: Record<string, string[]> | undefined;
}
//# sourceMappingURL=apiError.d.ts.map