import { AppKitError } from "./base.js";

//#region src/errors/execution.d.ts

/**
 * Error thrown when an operation execution fails.
 * Use for statement failures, canceled operations, or unexpected states.
 *
 * @example
 * ```typescript
 * throw new ExecutionError("Statement failed: syntax error");
 * throw new ExecutionError("Statement was canceled");
 * ```
 */
declare class ExecutionError extends AppKitError {
  readonly code = "EXECUTION_ERROR";
  readonly statusCode = 500;
  readonly isRetryable = false;
  /**
   * Create an execution error for statement failure
   */
  static statementFailed(errorMessage?: string): ExecutionError;
  /**
   * Create an execution error for canceled operation
   */
  static canceled(): ExecutionError;
  /**
   * Create an execution error for closed/expired results
   */
  static resultsClosed(): ExecutionError;
  /**
   * Create an execution error for unknown state
   */
  static unknownState(state: string): ExecutionError;
  /**
   * Create an execution error for missing data
   */
  static missingData(dataType: string): ExecutionError;
}
//#endregion
export { ExecutionError };
//# sourceMappingURL=execution.d.ts.map