(
public sizeInBytes: number,
public maxSizeBytes: number,
)
| 56 | |
| 57 | export class FileTooLargeError extends Error { |
| 58 | constructor( |
| 59 | public sizeInBytes: number, |
| 60 | public maxSizeBytes: number, |
| 61 | ) { |
| 62 | super( |
| 63 | `File content (${formatFileSize(sizeInBytes)}) exceeds maximum allowed size (${formatFileSize(maxSizeBytes)}). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.`, |
| 64 | ) |
| 65 | this.name = 'FileTooLargeError' |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | // --------------------------------------------------------------------------- |
nothing calls this directly
no test coverage detected