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 ParticipantNotFoundException build(Throwable e) { if (!(e instanceof ParticipantNotFoundException)) { throw new BonitaInternalException("Cannot create a ProcessNotFoundException", e); } return new ParticipantNotFoundException((ParticipantNotFoundException)e); } public String getParticipantId() {
public static IllegalTaskStateException build(Throwable e) { if (!(e instanceof IllegalTaskStateException)) { throw new BonitaInternalException("Cannot create a IllegalTaskStateException", e); } return new IllegalTaskStateException((IllegalTaskStateException)e); }
public static ActivityDefNotFoundException build(Throwable e) { if (!(e instanceof ActivityDefNotFoundException)) { throw new BonitaInternalException("Cannot create an ActivityDefNotFoundException", e); } return new ActivityDefNotFoundException((ActivityDefNotFoundException)e); }
public static InstanceNotFoundException build(Throwable e) { if (!(e instanceof InstanceNotFoundException)) { throw new BonitaInternalException("Cannot create a InstanceNotFoundException", e); } return new InstanceNotFoundException((InstanceNotFoundException)e); }
public static BonitaInternalException build(final RuntimeException exception) { final String message = exception.getMessage(); if (exception instanceof BonitaRuntimeException) { return new BonitaInternalException(message, exception); } final String msg = ExceptionManager.getInstance().getMessage("BIE1", message); return new BonitaInternalException(msg, exception); }
public static BonitaInternalException build(final RuntimeException exception) { final String message = exception.getMessage(); if (exception instanceof BonitaRuntimeException) { return new BonitaInternalException(message, exception); } final String msg = ExceptionManager.getInstance().getMessage("BIE1", message); return new BonitaInternalException(msg, exception); }
public static TaskNotFoundException build(String id, Throwable e) { if (!(e instanceof TaskNotFoundException)) { ExceptionManager manager = ExceptionManager.getInstance(); String message = manager.getIdMessage(id) + manager.getMessage("TNFE2"); throw new BonitaInternalException(message, e); } return new TaskNotFoundException((TaskNotFoundException)e); }
public static VariableNotFoundException build(String id, Throwable e) { if (!(e instanceof VariableNotFoundException)) { ExceptionManager manager = ExceptionManager.getInstance(); String message = manager.getIdMessage(id) + manager.getMessage("VNFE4"); throw new BonitaInternalException(message, e); } return new VariableNotFoundException((VariableNotFoundException)e); }
public static IllegalTaskStateException build(String id, Throwable e) { if (!(e instanceof IllegalTaskStateException)) { ExceptionManager manager = ExceptionManager.getInstance(); String message = manager.getIdMessage(id) + manager.getMessage("ITSE2"); throw new BonitaInternalException(message, e); } return new IllegalTaskStateException((IllegalTaskStateException)e); }
public static InstanceNotFoundException build(final String id, final Throwable e) { if (!(e instanceof InstanceNotFoundException)) { final ExceptionManager manager = ExceptionManager.getInstance(); final String message = manager.getIdMessage(id) + manager.getMessage("INFE2"); throw new BonitaInternalException(message, e); } return new InstanceNotFoundException((InstanceNotFoundException) e); }
public static VariableNotFoundException build(String id, Throwable e) { if (!(e instanceof VariableNotFoundException)) { ExceptionManager manager = ExceptionManager.getInstance(); String message = manager.getIdMessage(id) + manager.getMessage("VNFE4"); throw new BonitaInternalException(message, e); } return new VariableNotFoundException((VariableNotFoundException)e); }
public static DataFieldNotFoundException build(final String id, Throwable e) { if (!(e instanceof DataFieldNotFoundException)) { ExceptionManager manager = ExceptionManager.getInstance(); String message = manager.getIdMessage(id) + manager.getMessage("DFNFE4"); throw new BonitaInternalException(message, e); } return new DataFieldNotFoundException((DataFieldNotFoundException)e); }
public static ActivityDefNotFoundException build(final String id, Throwable e) { if (!(e instanceof ActivityDefNotFoundException)) { ExceptionManager manager = ExceptionManager.getInstance(); String message = manager.getIdMessage(id) + manager.getMessage("ADNFE3"); throw new BonitaInternalException(message, e); } return new ActivityDefNotFoundException((ActivityDefNotFoundException)e); }
public static InstanceNotFoundException build(final String id, final Throwable e) { if (!(e instanceof InstanceNotFoundException)) { final ExceptionManager manager = ExceptionManager.getInstance(); final String message = manager.getIdMessage(id) + manager.getMessage("INFE2"); throw new BonitaInternalException(message, e); } return new InstanceNotFoundException((InstanceNotFoundException) e); }
public static ActivityDefNotFoundException build(final String id, Throwable e) { if (!(e instanceof ActivityDefNotFoundException)) { ExceptionManager manager = ExceptionManager.getInstance(); String message = manager.getIdMessage(id) + manager.getMessage("ADNFE3"); throw new BonitaInternalException(message, e); } return new ActivityDefNotFoundException((ActivityDefNotFoundException)e); }
public static DataFieldNotFoundException build(final String id, Throwable e) { if (!(e instanceof DataFieldNotFoundException)) { ExceptionManager manager = ExceptionManager.getInstance(); String message = manager.getIdMessage(id) + manager.getMessage("DFNFE4"); throw new BonitaInternalException(message, e); } return new DataFieldNotFoundException((DataFieldNotFoundException)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 ParticipantNotFoundException build(final String id, Throwable e) { if (!(e instanceof ParticipantNotFoundException)) { ExceptionManager manager = ExceptionManager.getInstance(); String message = manager.getIdMessage(id) + manager.getMessage("PartNFE3"); throw new BonitaInternalException(message, e); } return new ParticipantNotFoundException((ParticipantNotFoundException)e); } public String getParticipantId() {
public static TaskNotFoundException build(String id, Throwable e) { if (!(e instanceof TaskNotFoundException)) { ExceptionManager manager = ExceptionManager.getInstance(); String message = manager.getIdMessage(id) + manager.getMessage("TNFE2"); throw new BonitaInternalException(message, e); } return new TaskNotFoundException((TaskNotFoundException)e); }