mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-23 00:06:17 -04:00
Tidied up OperationError code.
This commit is contained in:
parent
cc20ad9567
commit
0dbc7d4fd1
2 changed files with 13 additions and 10 deletions
|
@ -1,12 +1,16 @@
|
|||
/**
|
||||
* Create custom error type for handling operation input errors.
|
||||
* i.e. where the operation can handle the error and print a
|
||||
* message to the screen.
|
||||
* Custom error type for handling operation input errors.
|
||||
* i.e. where the operation can handle the error and print a message to the screen.
|
||||
*
|
||||
* @author d98762625 [d98762625@gmail.com]
|
||||
* @copyright Crown Copyright 2018
|
||||
* @license Apache-2.0
|
||||
*/
|
||||
class OperationError extends Error {
|
||||
/**
|
||||
* Standard error constructor. Adds no new behaviour.
|
||||
* @param args standard error args
|
||||
*
|
||||
* @param args - Standard error args
|
||||
*/
|
||||
constructor(...args) {
|
||||
super(...args);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue