mirror of
https://github.com/arthur-pbty/portfolio2023.git
synced 2026-06-03 23:36:21 +02:00
83 lines
2.5 KiB
TypeScript
83 lines
2.5 KiB
TypeScript
import { Exception } from '@poppinss/utils';
|
|
/**
|
|
* Unable to write file to the destination
|
|
*/
|
|
export declare class CannotWriteFileException extends Exception {
|
|
location: string;
|
|
original: any;
|
|
static invoke(location: string, original: any): CannotWriteFileException;
|
|
}
|
|
/**
|
|
* Unable to read file from a given location
|
|
*/
|
|
export declare class CannotReadFileException extends Exception {
|
|
location: string;
|
|
original: any;
|
|
static invoke(location: string, original: any): CannotReadFileException;
|
|
}
|
|
/**
|
|
* Unable to delete file from a given location
|
|
*/
|
|
export declare class CannotDeleteFileException extends Exception {
|
|
location: string;
|
|
original: any;
|
|
static invoke(location: string, original: any): CannotDeleteFileException;
|
|
}
|
|
/**
|
|
* Unable to copy file from source to destination
|
|
*/
|
|
export declare class CannotCopyFileException extends Exception {
|
|
source: string;
|
|
destination: string;
|
|
original: any;
|
|
static invoke(source: string, destination: string, original: any): CannotCopyFileException;
|
|
}
|
|
/**
|
|
* Unable to move file from source to destination
|
|
*/
|
|
export declare class CannotMoveFileException extends Exception {
|
|
source: string;
|
|
destination: string;
|
|
original: any;
|
|
static invoke(source: string, destination: string, original: any): CannotMoveFileException;
|
|
}
|
|
/**
|
|
* Unable to get file metadata
|
|
*/
|
|
export declare class CannotGetMetaDataException extends Exception {
|
|
location: string;
|
|
operation: string;
|
|
original: any;
|
|
static invoke(location: string, operation: string, original: any): CannotGetMetaDataException;
|
|
}
|
|
/**
|
|
* Unable to set visibility
|
|
*/
|
|
export declare class CannotSetVisibilityException extends Exception {
|
|
location: string;
|
|
original: any;
|
|
static invoke(location: string, original: any): CannotSetVisibilityException;
|
|
}
|
|
/**
|
|
* Unable to generate url for a file. The assets serving is disabled
|
|
*/
|
|
export declare class CannotGenerateUrlException extends Exception {
|
|
location: string;
|
|
static invoke(location: string, diskName: string): CannotGenerateUrlException;
|
|
}
|
|
/**
|
|
* Unable to list directory contents of given location
|
|
*/
|
|
export declare class CannotListDirectoryException extends Exception {
|
|
location: string;
|
|
original: any;
|
|
static invoke(location: string, original: any): CannotListDirectoryException;
|
|
}
|
|
/**
|
|
* Given location is trying to traverse beyond the root path
|
|
*/
|
|
export declare class PathTraversalDetectedException extends Exception {
|
|
location: string;
|
|
static invoke(location: string): PathTraversalDetectedException;
|
|
}
|