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 intcolumnprotected List<String>elementIdsprotected intlineprotected StringmainElementIdprotected Stringmessage
-
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 voidconcatenateErrorMessages(Throwable throwable)protected voidextractElementDetails(Element element)intgetColumn()The column where the problem occursList<String>getElementIds()The ids of all involved elements in the problem.intgetLine()The line where the problem occursStringgetMainElementId()The id of the main element causing the problem.StringgetMessage()The message of this problemStringtoString()
-
-
-
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:ProblemThe message of this problem- Specified by:
getMessagein interfaceProblem
-
getLine
public int getLine()
Description copied from interface:ProblemThe line where the problem occurs
-
getColumn
public int getColumn()
Description copied from interface:ProblemThe column where the problem occurs
-
getMainElementId
public String getMainElementId()
Description copied from interface:ProblemThe id of the main element causing the problem. It can benullin case the element doesn't have an id.- Specified by:
getMainElementIdin interfaceProblem
-
getElementIds
public List<String> getElementIds()
Description copied from interface:ProblemThe 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:
getElementIdsin interfaceProblem
-
-