import { Resource } from "./resource"; /** * RunError can be used for terminating a program abruptly, but resulting in a clean exit rather * than the usual verbose unhandled error logic which emits the source program text and complete * stack trace. This type should be rarely used. Ideally ResourceError should always be used so * that as many errors as possible can be associated with a Resource. */ export declare class RunError extends Error { /** * Returns true if the given object is an instance of a RunError. This is designed to work even when * multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is RunError; constructor(message: string); } /** * ResourceError can be used for terminating a program abruptly, specifically associating the * problem with a Resource. Depending on the nature of the problem, clients can choose whether or * not a call stack should be returned as well. This should be very rare, and would only indicate * no usefulness of presenting that stack to the user. */ export declare class ResourceError extends Error { resource: Resource | undefined; hideStack?: boolean; /** * Returns true if the given object is an instance of a ResourceError. This is designed to work even when * multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is ResourceError; constructor(message: string, resource: Resource | undefined, hideStack?: boolean); } export declare function isGrpcError(err: Error): boolean;