} else if (t instanceof LoginException) {
return new org.modeshape.webdav.exceptions.AccessDeniedException(t.getMessage(), t);
} else if (t instanceof ItemExistsException) {
return new ObjectAlreadyExistsException(t.getMessage(), t);
} else if (t instanceof PathNotFoundException) {
return new ObjectNotFoundException(t.getMessage(), t);
} else if (t instanceof ItemNotFoundException) {
return new ObjectNotFoundException(t.getMessage(), t);
} else if (t instanceof NoSuchWorkspaceException) {
return new ObjectNotFoundException(t.getMessage(), t);
} else {
return new WebdavException(t.getMessage(), t);
}
}