Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-pylib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-pylib
Commits
37a1abb2
Commit
37a1abb2
authored
May 31, 2021
by
Florian Spreckelsen
Browse files
Options
Downloads
Patches
Plain Diff
DOC: Add remaining error classes
parent
9549bee5
No related branches found
No related tags found
1 merge request
!11
DOC: Update tutorial on error handling
Pipeline
#7976
passed
May 31, 2021
Stage: code_style
Stage: linting
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/doc/tutorials/errors.rst
+42
-0
42 additions, 0 deletions
src/doc/tutorials/errors.rst
with
42 additions
and
0 deletions
src/doc/tutorials/errors.rst
+
42
−
0
View file @
37a1abb2
...
@@ -102,3 +102,45 @@ Subclasses of ``EntityError`` for special purposes:
...
@@ -102,3 +102,45 @@ Subclasses of ``EntityError`` for special purposes:
* ``AuthorizationError``
* ``AuthorizationError``
* ``AmbiguousEntityError``
* ``AmbiguousEntityError``
BadQueryError
-------------
A ``BadQueryError`` is raised when a query couldn't be processed by
the server. In contrast to a ``TransactionError`` it is not
necessarily caused by problematic entities or
containers. ``BadQueryError`` has the two important subclasses
``EmptyUniqueQueryError`` and ``QueryNotUniqueError`` for queries with
``unique=True`` which found no or ambiguous entities, respectively.
HTTP Errors
-----------
An ``HTTPClientError`` or an ``HTTPServerError`` is raised in case of
http(s) connection problems caused by the Python client or the CaosDB
server, respectively. There are the following subclasses of
``HTTPClientError`` that are used to specify the connection problem:
* ``HTTPURITooLongError``: The URI of the request was too long to be
processed by the server.
* ``HTTPForbiddenError``: You're not allowed to access this resource.
* ``HTTPResourceNotFoundError``: The requested resource doesn't exist.
Other Errors
------------
There are further subclasses of ``CaosDBException`` that are raised in
case of faulty configurations or other problems. They should be rather
self-explanatory from their names; see the `source code
<https://docs.indiscale.com/caosdb-pylib/_apidoc/caosdb.html#module-caosdb.exceptions>`_
for further information.
* ``ConfigurationError``
* ``LoginFailedError``
* ``MismatchingEntitiesError``
* ``ServerConfigurationException``
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment