public String getFullMessage(String id, Object... arguments) { StringBuilder message = new StringBuilder(); if (!containsAlreadyAnId(arguments)) { message.append(getIdMessage(id)); } message.append(getMessage(id, arguments)); return message.toString(); }
public ParticipantNotFoundException(final String id, final String participantId, final ProcessDefinitionUUID processDefinitionUUID) { super(ExceptionManager.getInstance().getIdMessage(id) + ExceptionManager.getInstance().getMessage("PartNFE1", participantId, processDefinitionUUID)); this.participantId = participantId; this.processUUID = processDefinitionUUID; this.participantUUID = null; }
public GroupNotFoundException(final String id, final String name) { super(ExceptionManager.getInstance().getIdMessage(id) + ExceptionManager.getInstance().getMessage("GNFE", name)); this.name = name; }
public RoleAlreadyExistsException(final String id, final String name) { super(ExceptionManager.getInstance().getIdMessage(id) + ExceptionManager.getInstance().getMessage("RAEE", name)); this.name = name; }
public RoleNotFoundException(final String id, final String name) { super(ExceptionManager.getInstance().getIdMessage(id) + ExceptionManager.getInstance().getMessage("RNFE", name)); this.name = name; }
public MetadataNotFoundException(final String id, final String name) { super(ExceptionManager.getInstance().getIdMessage(id) + ExceptionManager.getInstance().getMessage("MNFE", name)); this.name = name; }
public DataFieldNotFoundException(final String id, final String dataFieldId, final ProcessDefinitionUUID processDefinitionUUID) { super(ExceptionManager.getInstance().getIdMessage(id) + ExceptionManager.getInstance().getMessage("DFNFE1", dataFieldId, processDefinitionUUID)); this.dataFieldId = dataFieldId; this.processUUID = processDefinitionUUID; this.activityUUID = null; this.dataFieldUUID = null; }
public RoleAlreadyExistsException(final String id, final String name) { super(ExceptionManager.getInstance().getIdMessage(id) + ExceptionManager.getInstance().getMessage("RAEE", name)); this.name = name; }
public ProcessNotFoundException(final String id, final ProcessDefinitionUUID processUUID) { super(ExceptionManager.getInstance().getIdMessage(id) + ExceptionManager.getInstance().getMessage("PNFE3", processUUID)); this.processUUID = processUUID; this.processId = null; this.version = null; }
public UnAuthorizedUserException(String id, String msg, ActivityInstanceUUID taskUUID, String userId) { super(ExceptionManager.getInstance().getIdMessage(id) + ExceptionManager.getInstance().getMessage("UAUE3", userId, msg, taskUUID)); this.taskUUID = taskUUID; this.userId = userId; }
public ProcessNotFoundException(final String id, final String processId) { super(ExceptionManager.getInstance().getIdMessage(id) + ExceptionManager.getInstance().getMessage("PNFE1", processId)); this.processId = processId; this.processUUID = null; this.version = null; }
public UnAuthorizedUserException(String id, String msg, ActivityInstanceUUID taskUUID, String userId) { super(ExceptionManager.getInstance().getIdMessage(id) + ExceptionManager.getInstance().getMessage("UAUE3", userId, msg, taskUUID)); this.taskUUID = taskUUID; this.userId = userId; }
public MembershipNotFoundException(final String id, final String name) { super(ExceptionManager.getInstance().getIdMessage(id) + ExceptionManager.getInstance().getMessage("MSNFE", name)); this.name = name; }
public DataFieldNotFoundException(final String id, final DataFieldDefinitionUUID dataFieldDefinitionUUID) { super(ExceptionManager.getInstance().getIdMessage(id) + ExceptionManager.getInstance().getMessage("DFNFE3", dataFieldDefinitionUUID)); this.dataFieldUUID = dataFieldDefinitionUUID; this.dataFieldId = null; this.processUUID = null; this.activityUUID = null; }
public UserNotFoundException(final String id, final String userId) { super(ExceptionManager.getInstance().getIdMessage(id) + ExceptionManager.getInstance().getMessage("UNFE", userId)); this.userId = userId; }
public UndeletableInstanceException(String id, ProcessInstanceUUID processInstanceUUID, ProcessInstanceUUID parentInstanceUUID) { super(ExceptionManager.getInstance().getIdMessage(id) + ExceptionManager.getInstance().getMessage("UndelIE1", processInstanceUUID, parentInstanceUUID)); this.processInstanceUUID = processInstanceUUID; this.parentInstanceUUID = parentInstanceUUID; }
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 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 UncancellableInstanceException(final String id, final ProcessInstanceUUID processInstanceUUID, final ProcessInstanceUUID parentInstanceUUID, final InstanceState processInstanceState) { super(ExceptionManager.getInstance().getIdMessage(id) + (parentInstanceUUID != null ? ExceptionManager.getInstance().getMessage("UIE1",processInstanceUUID, parentInstanceUUID) : ExceptionManager.getInstance().getMessage("UIE2",processInstanceUUID, processInstanceState))); this.processInstanceUUID = processInstanceUUID; this.parentInstanceUUID = parentInstanceUUID; this.processInstanceState = processInstanceState; }