Download app/exceptions.py from killvung/cfy: direct link, hf CLI and curl.
- Browser
- Download file 470 Bytes
-
https://huggingface.co/spaces/killvung/cfy/resolve/main/app/exceptions.py
- Command line
-
hf download hf://spaces/killvung/cfy/app/exceptions.py
-
curl -L -o exceptions.py https://huggingface.co/spaces/killvung/cfy/resolve/main/app/exceptions.py
470 Bytes
| """Domain and persistence errors for the review app.""" | |
| class DatabaseError(Exception): | |
| """Base class for data-layer failures.""" | |
| class DuplicateRecordError(DatabaseError): | |
| """Postgres UNIQUE constraint violation.""" | |
| class DuplicateFeedbackError(DuplicateRecordError): | |
| """Feedback already submitted for this session and task.""" | |
| class DuplicateSessionError(DuplicateRecordError): | |
| """Session already exists for this invite (concurrent create).""" | |