Shotgird error list

Hey Everyone,

I want to develop a centralized python API to capture every possible error in Shotgrid if some process fails. Is there any document listing some general errors in Shotgrid?

Or any possible validations like SG connection is established or not, fields to operate on exists in the schema or not…sort of some error checking can be done?

Regards,
Pushpendra