private void addProblem(int level, SAXParseException pe) { Problem problem = new Problem(level, pe.getMessage(), pe); problem.setResource(pe.getSystemId()); int line = pe.getLineNumber(); if (line != -1) problem.setLine(new Integer(line)); problemListener.addProblem(problem); } }
public String toString() { StringBuffer buffer = new StringBuffer(); buffer.append('[').append(getTypeDescription(level)).append(']'); if (description != null) buffer.append(' ').append(description); if (resource != null) { buffer.append(" (").append(resource); if (line != null) buffer.append(':').append(line); buffer.append(')'); } return buffer.toString(); }
public JpdlException(String message, Throwable cause) { super(message, cause); problems = Collections.singletonList(new Problem(Problem.LEVEL_ERROR, message, cause)); }
public ProcessDefinition parseProcessDefinition() { ProcessDefinition processDefinition = ProcessDefinition.createNewProcessDefinition(); for (Iterator iter = getParsers().iterator(); iter.hasNext();) { ProcessArchiveParser processArchiveParser = (ProcessArchiveParser) iter.next(); processDefinition = processArchiveParser.readFromArchive(this, processDefinition); } if (Problem.containsProblemsOfLevel(problems, Problem.LEVEL_ERROR)) { throw new JpdlException(problems); } return processDefinition; }
public JpdlException(String message) { super(message); problems = Collections.singletonList(new Problem(Problem.LEVEL_ERROR, message)); }
public ProcessDefinition parseProcessDefinition() { ProcessDefinition processDefinition = ProcessDefinition.createNewProcessDefinition(); for (Iterator iter = getParsers().iterator(); iter.hasNext();) { ProcessArchiveParser processArchiveParser = (ProcessArchiveParser) iter.next(); processDefinition = processArchiveParser.readFromArchive(this, processDefinition); } if (Problem.containsProblemsOfLevel(problems, Problem.LEVEL_ERROR)) { throw new JpdlException(problems); } return processDefinition; }
private void addProblem(int level, SAXParseException pe) { Problem problem = new Problem(level, pe.getMessage(), pe); problem.setResource(pe.getSystemId()); int line = pe.getLineNumber(); if (line != -1) problem.setLine(new Integer(line)); problemListener.addProblem(problem); } }
public JpdlException(String message) { super(message); problems = Collections.singletonList(new Problem(Problem.LEVEL_ERROR, message)); }
verifySwimlaneAssignments(); if (Problem.containsProblemsOfLevel(problems, Problem.LEVEL_ERROR)) { throw new JpdlException(problems);
public String toString() { StringBuffer buffer = new StringBuffer(); buffer.append('[').append(getTypeDescription(level)).append(']'); if (description != null) buffer.append(' ').append(description); if (resource != null) { buffer.append(" (").append(resource); if (line != null) buffer.append(':').append(line); buffer.append(')'); } return buffer.toString(); }
public JpdlException(String message, Throwable cause) { super(message, cause); problems = Collections.singletonList(new Problem(Problem.LEVEL_ERROR, message, cause)); }
verifySwimlaneAssignments(); if (Problem.containsProblemsOfLevel(problems, Problem.LEVEL_ERROR)) { throw new JpdlException(problems);
public void addProblem(String msg) { problems.add(new Problem(Problem.LEVEL_ERROR, msg)); }
public void addProblem(String msg) { problems.add(new Problem(Problem.LEVEL_ERROR, msg)); }
public void addWarning(String description) { addProblem(new Problem(Problem.LEVEL_WARNING, description)); }
public void addError(String description, Throwable exception) { addProblem(new Problem(Problem.LEVEL_ERROR, description, exception)); }
public void addWarning(String description) { addProblem(new Problem(Problem.LEVEL_WARNING, description)); }
public void addError(String description) { addProblem(new Problem(Problem.LEVEL_ERROR, description)); }
public void addError(String description) { addProblem(new Problem(Problem.LEVEL_ERROR, description)); }
public void addError(String description, Throwable exception) { addProblem(new Problem(Problem.LEVEL_ERROR, description, exception)); }