You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.0 KiB
37 lines
1.0 KiB
2 years ago
|
const {BatchError} = require('./batch');
|
||
|
const {PageError} = require('./page');
|
||
|
const {SequenceError} = require('./sequence');
|
||
|
|
||
|
|
||
|
/**
|
||
|
* @namespace errors
|
||
|
* @description
|
||
|
* Namespace for all custom error types supported by the library.
|
||
|
*
|
||
|
* In addition to the custom error type used by each method (regular error), they can also reject with
|
||
|
* {@link external:TypeError TypeError} when receiving invalid input parameters.
|
||
|
*
|
||
|
* @property {function} BatchError
|
||
|
* {@link errors.BatchError BatchError} class.
|
||
|
*
|
||
|
* Represents regular errors that can be reported by method {@link batch}.
|
||
|
*
|
||
|
* @property {function} PageError
|
||
|
* {@link errors.PageError PageError} class.
|
||
|
*
|
||
|
* Represents regular errors that can be reported by method {@link page}.
|
||
|
*
|
||
|
* @property {function} SequenceError
|
||
|
* {@link errors.SequenceError SequenceError} class.
|
||
|
*
|
||
|
* Represents regular errors that can be reported by method {@link sequence}.
|
||
|
*
|
||
|
*/
|
||
|
module.exports = {
|
||
|
BatchError,
|
||
|
PageError,
|
||
|
SequenceError
|
||
|
};
|
||
|
|
||
|
Object.freeze(module.exports);
|