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 java.util.List<java.lang.String>elementIdsprotected intlineprotected java.lang.StringmainElementIdprotected java.lang.Stringmessage
-
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 voidconcatenateErrorMessages(java.lang.Throwable throwable)protected voidextractElementDetails(Element element)intgetColumn()The column where the problem occursjava.util.List<java.lang.String>getElementIds()The ids of all involved elements in the problem.intgetLine()The line where the problem occursjava.lang.StringgetMainElementId()The id of the main element causing the problem.java.lang.StringgetMessage()The message of this problemjava.lang.StringtoString()
-
-
-
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: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 java.lang.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 java.util.List<java.lang.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
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-