coveo-search-ui
Version:
Coveo JavaScript Search Framework
14 lines (11 loc) • 371 B
text/typescript
import { Assert } from '../misc/Assert';
import { IEndpointError } from '../rest/EndpointError';
export class AjaxError implements IEndpointError {
public type;
public name;
constructor(public message: string, public status: number) {
Assert.exists(message);
Assert.exists(status);
this.name = this.type = 'Ajax Error (status: ' + status + ')';
}
}