@aspnet/signalr
Version:
ASP.NET Core SignalR Client
22 lines (21 loc) • 831 B
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 @aspnet/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 @aspnet/signalr.TimeoutError}.
*
* @param {string} errorMessage A descriptive error message.
*/
constructor(errorMessage?: string);
}