The Visitordesignpattern is used to separate the exception hierarchy from the code that builds the fault details.
Visitor设计模式用于把异常层次与构建故障详细信息的代码分开。
2
Another designpattern that lends itself well to DEBA is the Visitor pattern, which externalizes an operation that will be performed on another object, a group of objects, or a structure of objects.