2018-08-31 14:43:14 +01:00
|
|
|
/**
|
2026-06-15 12:15:40 +04:00
|
|
|
* Custom error type for handling operation that isn't included in node.js API
|
2018-08-31 14:43:14 +01:00
|
|
|
*
|
|
|
|
|
* @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;
|