mirror of
https://github.com/biobulkbende/biobulkbende.org.git
synced 2024-12-27 05:15:25 +00:00
19 lines
462 B
JavaScript
19 lines
462 B
JavaScript
/**
|
|
* An error thrown when an Observable or a sequence was queried but has no
|
|
* elements.
|
|
*
|
|
* @see {@link first}
|
|
* @see {@link last}
|
|
* @see {@link single}
|
|
*
|
|
* @class EmptyError
|
|
*/
|
|
export class EmptyError extends Error {
|
|
constructor() {
|
|
const err = super('no elements in sequence');
|
|
this.name = err.name = 'EmptyError';
|
|
this.stack = err.stack;
|
|
this.message = err.message;
|
|
}
|
|
}
|
|
//# sourceMappingURL=EmptyError.js.map
|