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

import { DOCS } from '../../../constants.js';
const buildUrl = fnName => {
  if (fnName) {
    let obj;
    let fn;
    if (fnName.indexOf('.') > 0) {
      [obj, fn] = fnName.split('.');
      fn = `.${fn}`;
    } else {
      [obj, fn] = fnName.split('#');
    }
    return `${DOCS}/${obj}.html#${fn}`;
  }
  return DOCS;
};

/**
 * Error which is thrown when an abstract method is not implemented
 *
 * @category Errors
 */
export class NotImplementedError extends Error {
  /**
   * @param   {string}  fnName  name of the function, base on which error will
   * print on the output link to the method documentation.
   */
  constructor(fnName) {
    const message = `
    You have to implement the method: ${fnName}
    Check out the documentation at: ${buildUrl(fnName)}
    `;
    super(message);
    this.message = message;
  }
}
export default NotImplementedError;

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).