UNPKG

@loom-io/core

Version:

A file system wrapper for Node.js and Bun

23 lines (22 loc) 706 B
export declare function isInstanceOfLoomException(err: unknown, ref: EXCEPTION_REF): boolean; export declare enum EXCEPTION_REF { PLUGIN_NOT_FOUND = 0, PATH_NOT_EXISTS = 1, NO_SOURCE_ADAPTER = 2, DIRECTORY_NOT_EMPTY = 3 } interface LoomException { __loomExceptionRef: EXCEPTION_REF; } export declare class PathNotFoundException extends Error implements LoomException { protected _path: string; __loomExceptionRef: EXCEPTION_REF; constructor(_path: string); get path(): string; } export declare class DirectoryNotEmptyException extends Error implements LoomException { __loomExceptionRef: EXCEPTION_REF; _path: string; constructor(path: string); } export {};