Home | History | Annotate | Download | only in SemaCXX

Lines Matching defs:Exception

16 class Exception
19 Exception(const char* s = "Unknown"){what = strdup(s); }
20 Exception(const Exception& e ){what = strdup(e.what); }
21 ~Exception() {free(what); }
38 puts("Another exception:");
44 puts("Caught a C-based exception.");
45 throw(Exception("Hardware error: Divide by 0"));
48 catch(const Exception& e)
50 printf("Caught C++ Exception: %s :\n", e.msg());