Package org.camunda.bpm.engine.impl.xml
Class ProblemImpl
- java.lang.Object
-
- org.camunda.bpm.engine.impl.xml.ProblemImpl
-
-
Field Summary
Fields Modifier and Type Field Description protected int
column
protected List<String>
elementIds
protected int
line
protected String
mainElementId
protected String
message
-
Constructor Summary
Constructors Constructor Description ProblemImpl(String errorMessage, Element element)
ProblemImpl(String errorMessage, Element element, String... elementIds)
ProblemImpl(BpmnParseException exception)
ProblemImpl(BpmnParseException exception, String elementId)
ProblemImpl(SAXParseException e)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
concatenateErrorMessages(Throwable throwable)
protected void
extractElementDetails(Element element)
int
getColumn()
The column where the problem occursList<String>
getElementIds()
The ids of all involved elements in the problem.int
getLine()
The line where the problem occursString
getMainElementId()
The id of the main element causing the problem.String
getMessage()
The message of this problemString
toString()
-
-
-
Constructor Detail
-
ProblemImpl
public ProblemImpl(SAXParseException e)
-
ProblemImpl
public ProblemImpl(BpmnParseException exception)
-
ProblemImpl
public ProblemImpl(BpmnParseException exception, String elementId)
-
-
Method Detail
-
concatenateErrorMessages
protected void concatenateErrorMessages(Throwable throwable)
-
extractElementDetails
protected void extractElementDetails(Element element)
-
getMessage
public String getMessage()
Description copied from interface:Problem
The message of this problem- Specified by:
getMessage
in interfaceProblem
-
getLine
public int getLine()
Description copied from interface:Problem
The line where the problem occurs
-
getColumn
public int getColumn()
Description copied from interface:Problem
The column where the problem occurs
-
getMainElementId
public String getMainElementId()
Description copied from interface:Problem
The id of the main element causing the problem. It can benull
in case the element doesn't have an id.- Specified by:
getMainElementId
in interfaceProblem
-
getElementIds
public List<String> getElementIds()
Description copied from interface:Problem
The ids of all involved elements in the problem. It can be an empty list in case the elements do not have assigned ids.- Specified by:
getElementIds
in interfaceProblem
-
-