Raised when a call to a core PQC library function returns an error, or some obviously wrong parameter is detected.