Tidied up OperationError code.

This commit is contained in:
n1474335 2018-04-30 17:25:13 +00:00
parent cc20ad9567
commit 0dbc7d4fd1
2 changed files with 13 additions and 10 deletions

View file

@ -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);