@prestodb/presto-js-client
Version:
This is a Presto JavaScript client that connects to Presto via Presto's REST API to run queries.
25 lines (24 loc) • 532 B
TypeScript
import { ErrorType } from './enums';
export interface ExecutionFailureInfo {
type: string;
message: string;
cause?: ExecutionFailureInfo;
suppressed: ExecutionFailureInfo[];
stack: string[];
errorCode?: ErrorCode;
errorCause?: string;
}
export interface ErrorCode {
code: number;
name: string;
type: ErrorType;
retriable: boolean;
}
export interface WarningCode {
code: number;
name: string;
}
export interface PrestoWarning {
warningCode: WarningCode;
message: string;
}