Generalized exceptions
1 auto error = new PhabricatorAPIException("test"); 2 assert(error.msg == "test"); 3 assert(error.content == null); 4 error = new PhabricatorAPIException("test", "blah"); 5 assert(error.msg == "test"); 6 assert(error.content == "blah");
See Implementation
Generalized exceptions