Waste/Waste.Web.Entry/wwwroot/lib/microsoft/signalr/dist/esm/Errors.d.ts

31 lines
1.1 KiB
TypeScript

/** Error thrown when an HTTP request fails. */
export declare class HttpError extends Error {
private __proto__;
/** The HTTP status code represented by this error. */
statusCode: number;
/** Constructs a new instance of {@link @microsoft/signalr.HttpError}.
*
* @param {string} errorMessage A descriptive error message.
* @param {number} statusCode The HTTP status code represented by this error.
*/
constructor(errorMessage: string, statusCode: number);
}
/** Error thrown when a timeout elapses. */
export declare class TimeoutError extends Error {
private __proto__;
/** Constructs a new instance of {@link @microsoft/signalr.TimeoutError}.
*
* @param {string} errorMessage A descriptive error message.
*/
constructor(errorMessage?: string);
}
/** Error thrown when an action is aborted. */
export declare class AbortError extends Error {
private __proto__;
/** Constructs a new instance of {@link AbortError}.
*
* @param {string} errorMessage A descriptive error message.
*/
constructor(errorMessage?: string);
}