aXises/fortniteBot

View on GitHub
src/exception/NikkuException.ts

Summary

Maintainability
A
0 mins
Test Coverage
import CoreState from "state/CoreState";

export default class NikkuException extends Error {
    public message: string;

    /**
     * @classdesc Base custom exception class.
     * @param message - Message associated with the error.
     * @param stack - Stack associated with the error.
     */
    constructor(message?: string, stack?: string) {
        super(stack);
        this.message = message ? message : "No error message specified.";
    }
}