SPUC  3.0
Error handling functions