-
Notifications
You must be signed in to change notification settings - Fork 0
Custom Errors
Alexandre Moreau-Lemay edited this page Aug 20, 2022
·
1 revision
Here is the documentation on the different types of errors that the framework can generate.
class DuplicateObserverError extends Error {
constructor();
}Error that is triggered when a duplicated observer is being attached to a store.
Error
new DuplicateObserverError()class MemoryAllocationError extends Error {
constructor();
}Error that is triggered when attempting to insert a store at an address that was already allocated, without explicit override.
Error
new MemoryAllocationError()class NullPointerError extends Error {
constructor();
}Error that is triggered when attempting to access a memory address that is unallocated.
Error
new NullPointerError()class UnknownObserverError extends Error {
constructor();
}Error that is triggered when a non-existing/non-attached observer is being detached from a store.
Error
new UnknownObserverError()