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 java.util.List<java.lang.String>
elementIds
protected int
line
protected java.lang.String
mainElementId
protected java.lang.String
message
-
Constructor Summary
Constructors Constructor Description ProblemImpl(java.lang.String errorMessage, Element element)
ProblemImpl(java.lang.String errorMessage, Element element, java.lang.String... elementIds)
ProblemImpl(BpmnParseException exception)
ProblemImpl(BpmnParseException exception, java.lang.String elementId)
ProblemImpl(org.xml.sax.SAXParseException e)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
concatenateErrorMessages(java.lang.Throwable throwable)
protected void
extractElementDetails(Element element)
int
getColumn()
The column where the problem occursjava.util.List<java.lang.String>
getElementIds()
The ids of all involved elements in the problem.int
getLine()
The line where the problem occursjava.lang.String
getMainElementId()
The id of the main element causing the problem.java.lang.String
getMessage()
The message of this problemjava.lang.String
toString()
-
-
-
Constructor Detail
-
ProblemImpl
public ProblemImpl(org.xml.sax.SAXParseException e)
-
ProblemImpl
public ProblemImpl(java.lang.String errorMessage, Element element)
-
ProblemImpl
public ProblemImpl(java.lang.String errorMessage, Element element, java.lang.String... elementIds)
-
ProblemImpl
public ProblemImpl(BpmnParseException exception)
-
ProblemImpl
public ProblemImpl(BpmnParseException exception, java.lang.String elementId)
-
-
Method Detail
-
concatenateErrorMessages
protected void concatenateErrorMessages(java.lang.Throwable throwable)
-
extractElementDetails
protected void extractElementDetails(Element element)
-
getMessage
public java.lang.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 java.lang.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 java.util.List<java.lang.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
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-