@ocubist/error-alchemy
Version:
A powerful Node.js error-handling-framework with custom error types for easy debugging, enhanced error management, strong zod-support and useful quality-of-life-functionality for asserting and validating values.
22 lines (19 loc) • 577 B
text/typescript
import { TransmutedError } from "./TransmutedError";
import { TransmutedErrorProps } from "./types";
/**
* Class representing a mystic error, which is a transmuted error that is not yet handled.
*
* @extends TransmutedError
*/
export class MysticError extends TransmutedError {
/**
* Constructs a new MysticError.
*
* @param {TransmutedErrorProps} props - The properties of the mystic error.
*/
constructor(props: TransmutedErrorProps) {
super(props);
// Set the prototype explicitly.
Object.setPrototypeOf(this, MysticError.prototype);
}
}