mirror of https://github.com/lukechilds/ow.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
276 B
8 lines
276 B
export class ArgumentError extends Error {
|
|
constructor(message: string, context: Function) {
|
|
super(message);
|
|
// TODO: Node does not preserve the error name in output when using the below, why?
|
|
Error.captureStackTrace(this, context);
|
|
this.name = 'ArgumentError';
|
|
}
|
|
}
|
|
|