@granito/ngx-hal-client
Version:
A HAL client to be used in Angular projects
28 lines (27 loc) • 601 B
TypeScript
/**
* This class represents errors thrown by _Angular HAL Client_. It
* unifies errors produced by _Angulat HTTP Client_ and errors originating
* in the API.
*/
export declare class HalError extends Error {
/**
* The URI path where the error originated.
*/
path?: string;
/**
* The HTTP status code of the error.
*/
status?: number;
/**
* The description of the HTTP status.
*/
error?: string;
/**
* XXX.
*/
[key: string]: any;
/**
* @param err the object used to set properties
*/
constructor(err: any);
}