Use NitrateError class for raising exceptions instead of plain str