自定义错误的另一个用处

自定义异常的另一个用处If you want to return some informations about exception, such as id of node o

自定义异常的另一个用处

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.