Fix invalid Exception class