Lines Matching refs:logic_error
4 class logic_error { class
6 logic_error(const char *message) {} in logic_error() function in logic_error
9 typedef logic_error *logic_ptr;
22 logic_error CreateException() { return logic_error("created"); } in CreateException()
25 throw new logic_error("by pointer"); in testThrowFunc()
27 logic_ptr tmp = new logic_error("by pointer"); in testThrowFunc()
31 throw logic_error("by value"); in testThrowFunc()
33 throw logic_error(literal); in testThrowFunc()
40 logic_error lvalue("lvalue"); in testThrowFunc()
51 void throwReferenceFunc(logic_error &ref) { throw ref; } in throwReferenceFunc()
56 } catch (logic_error *e) { in catchByPointer()
64 } catch (logic_error e) { in catchByValue()
72 } catch (logic_error &e) { in catchByReference()
79 } catch (const logic_error &e) { in catchByConstReference()
132 typedef logic_error &fine;
139 } catch (logic_error *e) { in additionalTests()