harperdb
Version:
HarperDB is a distributed database, caching service, streaming broker, and application development platform focused on performance and ease of use.
27 lines (26 loc) • 864 B
TypeScript
import { Resource } from './Resource';
import { Context } from './ResourceInterface';
/**
* ErrorResource is a Resource that throws an error on any request, communicating to the client when attempts are made
* to access endpoints/resources that had an internal error in their configuration or setup. This helps ensure that
* if there is a problem with a resource, it is immediately apparent and can be fixed.
*/
export declare class ErrorResource implements Resource {
error: Error;
constructor(error: Error);
isError: boolean;
allowRead(): never;
allowUpdate(): never;
allowCreate(): never;
allowDelete(): never;
getId(): never;
getContext(): Context;
get(): never;
post(): never;
put(): never;
delete(): never;
connect(): never;
getResource(): this;
publish(): never;
subscribe(): never;
}