KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Is it proper to use throw new FoobarException(Baz argument); or throw FoobarException(Baz argument); ? When catching I always use catch(FoobarException& e) "just in case" but I never could find a solid answer whether I had to use new or not in C++ (Java definitely) or if it was just a preference of the programmer.
Tags (comma-separated)
Save Edits
Cancel