blob: 83edc8e09acb7ae23977c60382378fb92da51cba [file] [log] [blame]
/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
/**
* Exception used when a function receives an invalid argument.
*/
export class InvalidArgumentsException extends Error {
constructor(message?: string) {
super(message);
Object.setPrototypeOf(this, InvalidArgumentsException.prototype);
}
}
InvalidArgumentsException.prototype.name = 'InvalidArgumentsException';