Package com.schibsted.spt.data.jslt
Class JsltException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.schibsted.spt.data.jslt.JsltException
- All Implemented Interfaces:
Serializable
Parent exception for all exceptions thrown by JSLT for both
compilation and run-time errors.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJsltException
(String message) JsltException
(String message, Location location) JsltException
(String message, Throwable cause) JsltException
(String message, Throwable cause, Location location) -
Method Summary
Modifier and TypeMethodDescriptionint
What column did the error occur on? -1 if unknown.int
getLine()
What line did the error occur on? -1 if unknown.Returns the error message with location information.Returns the error message without location information.What file/resource did the error occur in? Can be null.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
location
-
-
Constructor Details
-
JsltException
-
JsltException
-
JsltException
-
JsltException
-
-
Method Details
-
getMessage
Returns the error message with location information.- Overrides:
getMessage
in classThrowable
-
getMessageWithoutLocation
Returns the error message without location information. -
getSource
What file/resource did the error occur in? Can be null. -
getLine
public int getLine()What line did the error occur on? -1 if unknown. -
getColumn
public int getColumn()What column did the error occur on? -1 if unknown.
-