UNPKG

@prestodb/presto-js-client

Version:

This is a Presto JavaScript client that connects to Presto via Presto's REST API to run queries.

20 lines (19 loc) 566 B
export interface PrestoErrorObject extends Error { errorCode: number; errorName: string; errorType: string; failureInfo: { message: string; stack: string[]; suppressed: string[]; type: string; }; message: string; } export declare class PrestoError extends Error implements PrestoErrorObject { errorCode: number; errorName: string; errorType: string; failureInfo: PrestoErrorObject['failureInfo']; constructor({ errorCode, errorName, errorType, failureInfo, message }: PrestoErrorObject); }