Files
orca/src/main/runtime/orchestration/orchestration-error.ts
T

12 lines
266 B
TypeScript

export class OrchestrationError extends Error {
readonly code: string
readonly data?: unknown
constructor(code: string, message: string, data?: unknown) {
super(message)
this.name = 'OrchestrationError'
this.code = code
this.data = data
}
}