@byloth/core 1.4.1 → 1.5.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import Exception from "./exception.js";
1
+ import { ReferenceException } from "./exceptions/index.js";
2
2
 
3
3
  export default class Subscribers<P extends unknown[] = [], R = void, T extends (...args: P) => R = (...args: P) => R>
4
4
  {
@@ -18,7 +18,7 @@ export default class Subscribers<P extends unknown[] = [], R = void, T extends (
18
18
  const index = this._subscribers.indexOf(subscriber);
19
19
  if (index < 0)
20
20
  {
21
- throw new Exception("Unable to remove the requested subscriber. It was not found.");
21
+ throw new ReferenceException("Unable to remove the requested subscriber. It was not found.");
22
22
  }
23
23
 
24
24
  this._subscribers.splice(index, 1);
File without changes