Files
python-teos/pisa/errors.py
Sergi Delgado Segura a4350f0c35 Creates a speciall error code for unexpected error
The rationale behind this is being able to identify exceptions that we may not be taking into account
2019-08-12 14:05:04 +01:00

16 lines
378 B
Python

# Appointment errors
APPOINTMENT_EMPTY_FIELD = -1
APPOINTMENT_WRONG_FIELD_TYPE = -2
APPOINTMENT_WRONG_FIELD_SIZE = -3
APPOINTMENT_WRONG_FIELD_FORMAT = -4
APPOINTMENT_FIELD_TOO_SMALL = -5
APPOINTMENT_FIELD_TOO_BIG = -6
APPOINTMENT_WRONG_FIELD = -7
APPOINTMENT_CIPHER_NOT_SUPPORTED = -8
APPOINTMENT_HASH_FUNCTION_NOT_SUPPORTED = -9
# UNHANDLED
UNKNOWN_JSON_RPC_EXCEPTION = -99