constructor(message, originalError) {
		super(message);

		this.name = this.constructor.name;

		if (Error.captureStackTrace) {
			Error.captureStackTrace(this, this.constructor);
		}

		if (originalError) {
			this.originalError = originalError;
		}
	}
@param {string} message - The error message to display.
@param {unknown} [originalError] - The original error caught.