自定义异常的另一个用处
If you want to return some informations about exception, such as id of node or edge, than you can use self-definition to complish this goal.