trilium_alchemy.core.exceptions#

Exception index#

Canonical

ReadOnlyError

Raised when user attempts to write a field which is read-only.

ValidationError

Raised upon flush when changes in unit of work are invalid or incompatible.

Symbols#

exception trilium_alchemy.core.exceptions.ReadOnlyError(field, entity)#

Initialization:

Initialize self. See help(type(self)) for accurate signature.

Bases:

Exception

Aliases:

trilium_alchemy.ReadOnlyError
trilium_alchemy.core.ReadOnlyError

Raised when user attempts to write a field which is read-only.

with_traceback()#

Inherited from: BaseException

Exception.with_traceback(tb) – set self.traceback to tb and return self.

class args#

Inherited from: BaseException

exception trilium_alchemy.core.exceptions.ValidationError(errors: list[str])#

Initialization:

Initialize self. See help(type(self)) for accurate signature.

Bases:

Exception

Aliases:

trilium_alchemy.ValidationError
trilium_alchemy.core.ValidationError

Raised upon flush when changes in unit of work are invalid or incompatible.

Examples:

with_traceback()#

Inherited from: BaseException

Exception.with_traceback(tb) – set self.traceback to tb and return self.

class args#

Inherited from: BaseException