added error logging from exception classes