Skip to content

@nhtio/vue-editors/errors

Contains the custom error classes used in the Vue Editors library.

Classes

ClassDescription
CannotAccessDisposedDirectExceptionException thrown when an operation is attempted on a disposed NVEDirent instance.
CouldNotCreateMonacoModelForDirentExceptionException thrown when trying to create a Monaco model and an error occurs
DirentAlreadyExistsExceptionException thrown when trying to create a NVEDirent that already exists.
InvalidExecutionContextExceptionException thrown when the library is executed in an invalid context (e.g., outside browser or web worker).
NoCommitMethodDefinedExceptionException thrown when trying to commit a dirent or filesystem which does not have a valid commit hook
NoSuchDirentExceptionException thrown when trying to access a NVEDirent that does not exist.
NotASerializedDirentException thrown when trying to create a MonacoDirect from an invalid Serialized string
NotASerializedNVEFileSystemException thrown when trying to create a NVEFileSystem from an invalid Serialized string

Interfaces

InterfaceDescription
LibraryErrorBase class for all custom errors in the Vue Editors library. Extends the native Error class and provides additional features such as stack trace trimming and custom name/message handling.
LibraryErrorOptionsDescribes the options for the LibraryError class.