Class XLSXParseErrorException
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.XLSXParseErrorException
- 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 XLSX meaning.
- Since:
- Dec 14, 2009
- 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.XLSXParseErrorException(String message) Constructs a new exception with the specified detail message.XLSXParseErrorException(String message, Template template, String[] position, int columnNumber, String source) Constructs a new exception with the specified detail message. -
Method Summary
Modifier and TypeMethodDescriptionReturn a cellNumber.Return a full message.Return a sheet number.voidsetCellNumber(String cellNumber) Set a cellNumber.voidsetSheetNumber(String sheetNumber) Set a sheet number.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
-
XLSXParseErrorException
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.
-
XLSXParseErrorException
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.
-
XLSXParseErrorException
public XLSXParseErrorException(String message, Template template, String[] position, 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- templateposition- positioncolumnNumber- column numbersource- template content until offset of error character.
-
-
Method Details
-
getSheetNumber
Return a sheet number.- Returns:
- the sheet number
-
setSheetNumber
Set a sheet number.- Parameters:
sheetNumber- the sheet number to set
-
getCellNumber
Return a cellNumber.- Returns:
- the cellNumber
-
setCellNumber
Set a cellNumber.- Parameters:
cellNumber- the cellNumber to set
-
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
-