mirror of
https://github.com/gchq/CyberChef.git
synced 2024-09-16 16:41:32 +02:00
26 lines
620 B
JavaScript
26 lines
620 B
JavaScript
/**
|
|
* Custom error type for handling operation that isnt included in node.js API
|
|
*
|
|
* @author d98762625 [d98762625@gmail.com]
|
|
* @copyright Crown Copyright 2018
|
|
* @license Apache-2.0
|
|
*/
|
|
class ExcludedOperationError extends Error {
|
|
/**
|
|
* Standard error constructor. Adds no new behaviour.
|
|
*
|
|
* @param args - Standard error args
|
|
*/
|
|
constructor(...args) {
|
|
super(...args);
|
|
|
|
this.type = "ExcludedOperationError";
|
|
|
|
if (Error.captureStackTrace) {
|
|
Error.captureStackTrace(this, ExcludedOperationError);
|
|
}
|
|
}
|
|
}
|
|
|
|
export default ExcludedOperationError;
|