DomError 构造函数

DomError((
  1. String name,
  2. [String? message]
)

实现

factory DomError(String name, [String? message]) {
  if (message != null) {
    return DomError._create_1(name, message);
  }
  return DomError._create_2(name);
}