Class PPTXParseErrorException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.nomagic.magicreport.TemplateException
com.nomagic.magicreport.ParseErrorException
com.nomagic.magicreport.engine.ooxml.PPTXParseErrorException
- All Implemented Interfaces:
Serializable
Application-level exception thrown when a template has a syntax or other error which prevents it from being
parsed. The exception message will be return in PPTX meaning.
- Since:
- Jan 7, 2010
- See Also:
-
Field Summary
Fields inherited from class com.nomagic.magicreport.ParseErrorException
columnNumber, fullMessage, lineNumber, source, template -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new exception with the specified detail message.PPTXParseErrorException(String message) Constructs a new exception with the specified detail message.PPTXParseErrorException(String message, Template template, int lineNumber, int columnNumber, String source) Constructs a new exception with the specified detail message. -
Method Summary
Modifier and TypeMethodDescriptionReturn a full message.voidsetOtherFile(boolean otherFile) Set true if file is not on current slide.toString()Return string representation of this exception.Methods inherited from class com.nomagic.magicreport.ParseErrorException
copy, getColumnNumber, getFullMessage, getLineNumber, getShortMessage, getSource, getSourceMessage, getTemplate, setColumnNumber, setFullMessage, setLineNumber, setSource, setTemplateMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
PPTXParseErrorException
Constructs a new exception with the specified detail message.- Parameters:
message- the detail message. The detail message is saved for later retrieval by thegetMessage()method.
-
PPTXParseErrorException
Constructs a new exception with the specified detail message.- Parameters:
message- the detail message. The detail message is saved for later retrieval by thegetMessage()method.
-
PPTXParseErrorException
public PPTXParseErrorException(String message, Template template, int lineNumber, int columnNumber, String source) Constructs a new exception with the specified detail message.- Parameters:
message- the detail message. The detail message is saved for later retrieval by thegetMessage()method.template- templatelineNumber- line numbercolumnNumber- column numbersource- template content until offset of error character.
-
-
Method Details
-
getMessage
Return a full message.- Overrides:
getMessagein classParseErrorException- Returns:
- the full message
-
toString
Return string representation of this exception.- Overrides:
toStringin classParseErrorException- Returns:
- a string representation of this exception
-
setOtherFile
public void setOtherFile(boolean otherFile) Set true if file is not on current slide.- Parameters:
otherFile- otherFile
-