Skip to content

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.

DuplicateObserverError

class DuplicateObserverError extends Error {
    constructor();
}

Error that is triggered when a duplicated observer is being attached to a store.

Extends

Error

Constructors

new DuplicateObserverError()

MemoryAllocationError

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.

Extends

Error

Constructors

new MemoryAllocationError()

NullPointerError

class NullPointerError extends Error {
    constructor();
}

Error that is triggered when attempting to access a memory address that is unallocated.

Extends

Error

Constructors

new NullPointerError()

UnknownObserverError

class UnknownObserverError extends Error {
    constructor();
}

Error that is triggered when a non-existing/non-attached observer is being detached from a store.

Extends

Error

Constructors

new UnknownObserverError()

Clone this wiki locally