dump-things-server/dump_things_service/exceptions.py
Christian Monch 0b8520362b throw an exception if a prefix in a pid is undefined
if a `pid` is in CURIE format and cannot be resolved
because the prefix is unknown, an error during storage
will be reported.

SafeCURIEs will not be resolved. A SafeCURIE is a
CURIE with one of the following properties:

1. It starts with the prefixes `http:` or `https:`
2. It is enclosed in `[` and `]`.
3. It is enclosed in `<` and `>`.
2025-09-29 15:10:50 +02:00

6 lines
89 B
Python

class ConfigError(Exception):
pass
class CurieResolutionError(Exception):
pass