UNPKG

@ayonli/jsext

Version:

A JavaScript extension package for building strong and modern applications.

65 lines (64 loc) 2.16 kB
import { Exception } from "../error.ts"; /** * This error indicates that the operation is invalid, such as trying to copy a * directory without the `recursive` option. * * NOTE: This error has an HTTP-compatible code of `400`. */ export declare class InvalidOperationError extends Exception { constructor(message: string, options?: ErrorOptions); } /** * This error indicates that an operation cannot be performed because the target * path is a directory while a file is expected. * * NOTE: This error has an HTTP-compatible code of `400`. */ export declare class IsDirectoryError extends Exception { constructor(message: string, options?: ErrorOptions); } /** * This error indicates that an operation cannot be performed because the target * path is a file while a directory is expected. * * NOTE: This error has an HTTP-compatible code of `400`. */ export declare class NotDirectoryError extends Exception { constructor(message: string, options?: ErrorOptions); } /** * This error indicates that the file is too large, or the file system doesn't * have enough space to store the new content. * * NOTE: This error has an HTTP-compatible code of `413`. */ export declare class FileTooLargeError extends Exception { constructor(message: string, options?: ErrorOptions); } /** * This error indicates that too many symbolic links were encountered when * resolving the filename. * * NOTE: This error has an HTTP-compatible code of `508`. */ export declare class FilesystemLoopError extends Exception { constructor(message: string, options?: ErrorOptions); } /** * This error indicates that the file is busy at the moment, such as being * locked by another program. * * NOTE: This error has an HTTP-compatible code of `423`. */ export declare class BusyError extends Exception { constructor(message: string, options?: ErrorOptions); } /** * This error indicates that the operation is interrupted by the underlying file * system. * * NOTE: This error has an HTTP-compatible code of `500`. */ export declare class InterruptedError extends Exception { constructor(message: string, options?: ErrorOptions); }