REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.20 KB
Close
//proc/thread-self/root/home/byroehnu/.trash/node_modules11/adminjs/src/backend/utils/errors/not-found-error.ts
Text
Base64
import { ErrorTypeEnum } from '../../../utils/error-type.enum.js' import * as CONSTANTS from '../../../constants.js' import RecordError from './record-error.js' const buildUrl = (page: string): string => ( `${CONSTANTS.DOCS}/${page}` ) /** * Error which is thrown when given record/resource/action hasn't been found. * * @category Errors */ export class NotFoundError extends Error { /** * HTTP Status code: 404 */ public statusCode: number /** * Base error message and type which is stored in the record */ public baseError: RecordError /** * Any custom message which should be seen in the UI */ public baseMessage?: string /** * @param {string} fnName name of the function, base on which error will * print on the output link to the method documentation. * @param {string} message */ constructor(message, fnName) { const msg = ` ${message} More information can be found at: ${buildUrl(fnName)} ` super(msg) this.statusCode = 404 this.baseMessage = message this.baseError = { message, type: ErrorTypeEnum.NotFound, } this.message = msg this.name = ErrorTypeEnum.NotFound } } export default NotFoundError
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 8
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
app-error.ts
1.28 KB
lrw-r--r--
2026-02-28 00:32:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
configuration-error.ts
783 B
lrw-r--r--
2026-02-28 00:32:02
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
forbidden-error.ts
954 B
lrw-r--r--
2026-02-28 00:32:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.ts
261 B
lrw-r--r--
2026-02-28 00:32:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
not-found-error.ts
1.20 KB
lrw-r--r--
2026-02-28 00:32:38
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
not-implemented-error.ts
888 B
lrw-r--r--
2026-02-28 00:32:38
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
record-error.ts
327 B
lrw-r--r--
2026-02-28 00:32:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
validation-error.ts
1.18 KB
lrw-r--r--
2026-02-28 00:32:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).