Fixed #4 Add errors 538312-315 as generic errors
add generic error codes re #4 and a function to throw them. Simplifies basic error generation for modules at the expense of detailed error information.