This commit is contained in:
Tutur33
2023-11-24 22:35:41 +01:00
parent 3c0b507a93
commit 7644b2a0f7
45165 changed files with 4803356 additions and 3 deletions
+82
View File
@@ -0,0 +1,82 @@
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;
}