raise the exception to add it to the log file