public static UnAuthorizedUserException build(Throwable e) { if (!(e instanceof UnAuthorizedUserException)) { throw new BonitaInternalException("Cannot create a UnAuthorizedUserException", e); } return new UnAuthorizedUserException((UnAuthorizedUserException)e); }
public static UnAuthorizedUserException build(String id, Throwable e) { if (!(e instanceof UnAuthorizedUserException)) { ExceptionManager manager = ExceptionManager.getInstance(); String message = manager.getIdMessage(id) + manager.getMessage("UAUE4"); throw new BonitaInternalException(message, e); } return new UnAuthorizedUserException((UnAuthorizedUserException)e); }
public static UnAuthorizedUserException build(String id, Throwable e) { if (!(e instanceof UnAuthorizedUserException)) { ExceptionManager manager = ExceptionManager.getInstance(); String message = manager.getIdMessage(id) + manager.getMessage("UAUE4"); throw new BonitaInternalException(message, e); } return new UnAuthorizedUserException((UnAuthorizedUserException)e); }