if (isConstraintViolation()) {
return new ConstraintViolationException(message, this);
} else if (isOfType(NAMESPACE)) {
return new NamespaceException(message, this);
} else if (isOfType(NODE_TYPE)) {
return new NoSuchNodeTypeException(message, this);
} else if (isAccessViolation()) {
return new AccessDeniedException(message, this);
} else if (isAccessControlViolation()) {
return new AccessControlException(message, this);
} else if (isOfType(INTEGRITY)) {