PHP 8.2.30
Preview: configuration-error.js Size: 764 B
//proc/thread-self/root/home/byroehnu/.trash/node_modules11/adminjs/lib/backend/utils/errors/configuration-error.js

import { ErrorTypeEnum } from '../../../utils/error-type.enum.js';
import * as CONSTANTS from '../../../constants.js';
const buildUrl = page => `${CONSTANTS.DOCS}/${page}`;

/**
 * Error which is thrown when user messed up something in the configuration
 *
 * @category Errors
 */
export class ConfigurationError extends Error {
  /**
   * @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.message = msg;
    this.name = ErrorTypeEnum.Configuration;
  }
}
export default ConfigurationError;

Directory Contents

Dirs: 0 × Files: 8

Name Size Perms Modified Actions
994 B lrw-r--r-- 2026-02-28 00:31:14
Edit Download
764 B lrw-r--r-- 2026-02-28 00:31:26
Edit Download
815 B lrw-r--r-- 2026-02-28 00:31:34
Edit Download
267 B lrw-r--r-- 2026-02-28 00:31:42
Edit Download
1.05 KB lrw-r--r-- 2026-02-28 00:31:48
Edit Download
872 B lrw-r--r-- 2026-02-28 00:31:48
Edit Download
10 B lrw-r--r-- 2026-02-28 00:31:48
Edit Download
967 B lrw-r--r-- 2026-02-28 00:31:52
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).