mirror of
https://github.com/gchq/CyberChef
synced 2025-12-10 05:13:23 +00:00
Tidied up OperationError code.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user