@canard/schema-form
Version:
React-based component library that renders forms based on JSON Schema with plugin system support for validators and UI components
15 lines (14 loc) • 559 B
TypeScript
import { BaseError, type ErrorDetails } from '@winglet/common-utils/error';
/**
* Error class for unhandled errors.
* Used to catch and standardize unhandled exceptions in the application.
*/
export declare class UnhandledError extends BaseError {
constructor(code: string, message: string, details?: ErrorDetails);
}
/**
* Checks if the given error is of UnhandledError type.
* @param error - Error object to check
* @returns Whether it is UnhandledError type
*/
export declare const isUnhandledError: (error: unknown) => error is UnhandledError;