@temporalio/common
Version:
Common library for code that's used across the Client, Worker, and/or Workflow
37 lines (36 loc) • 1.22 kB
TypeScript
/**
* Thrown from code that receives a value that is unexpected or that it's unable to handle.
*/
export declare class ValueError extends Error {
readonly cause?: unknown;
constructor(message: string | undefined, cause?: unknown);
}
/**
* Thrown when a Payload Converter is misconfigured.
*/
export declare class PayloadConverterError extends ValueError {
}
/**
* Used in different parts of the SDK to note that something unexpected has happened.
*/
export declare class IllegalStateError extends Error {
}
/**
* Thrown when a Workflow with the given Id is not known to Temporal Server.
* It could be because:
* - Id passed is incorrect
* - Workflow is closed (for some calls, e.g. `terminate`)
* - Workflow was deleted from the Server after reaching its retention limit
*/
export declare class WorkflowNotFoundError extends Error {
readonly workflowId: string;
readonly runId: string | undefined;
constructor(message: string, workflowId: string, runId: string | undefined);
}
/**
* Thrown when the specified namespace is not known to Temporal Server.
*/
export declare class NamespaceNotFoundError extends Error {
readonly namespace: string;
constructor(namespace: string);
}