Errors
errors ¶
Errors/exceptions of the Ultimate Notion API.
EmptyDBError ¶
A special exception that tells us that a database is empty during probing.
EmptyListError ¶
Custom exception for an empty list in SList.
FilterQueryError ¶
An exception that is raised when a filter query is invalid.
InvalidAPIUsageError ¶
Raised when the API is used in an invalid way.
MultipleItemsError ¶
Custom exception for a list with multiple items in SList.
PropertyError ¶
Raised when there is an issue with a property in the schema.
ReadOnlyPropertyError ¶
Raised when an attempt is made to write to a write-protected property.
RelationError ¶
Error if a Relation cannot be initialised.
RollupError ¶
Error if definition of rollup is wrong.
SchemaError ¶
Raised when there are issues with the schema of a database.
SchemaNotBoundError(schema: type[Schema]) ¶
Raised when the schema is not bound to a database.
schema = schema instance-attribute ¶
SessionError ¶
Raised when there are issues with the Notion session.
UltimateNotionError ¶
Base class for all exceptions in this package.
UnknownPageError ¶
Raised when the page is unknown.
UnknownUserError ¶
Raised when the user is unknown.
UnsetError ¶
Raised when an unset value is accessed before being initialized by the Notion API.