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:
java.io.Serializable
public class JsltException extends java.lang.RuntimeException
Parent exception for all exceptions thrown by JSLT for both compilation and run-time errors.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JsltException(java.lang.String message)
JsltException(java.lang.String message, Location location)
JsltException(java.lang.String message, java.lang.Throwable cause)
JsltException(java.lang.String message, java.lang.Throwable cause, Location location)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getColumn()
What column did the error occur on? -1 if unknown.int
getLine()
What line did the error occur on? -1 if unknown.java.lang.String
getMessage()
Returns the error message with location information.java.lang.String
getMessageWithoutLocation()
Returns the error message without location information.java.lang.String
getSource()
What file/resource did the error occur in? Can be null.
-
-
-
Field Detail
-
location
private Location location
-
-
Constructor Detail
-
JsltException
public JsltException(java.lang.String message)
-
JsltException
public JsltException(java.lang.String message, Location location)
-
JsltException
public JsltException(java.lang.String message, java.lang.Throwable cause)
-
JsltException
public JsltException(java.lang.String message, java.lang.Throwable cause, Location location)
-
-
Method Detail
-
getMessage
public java.lang.String getMessage()
Returns the error message with location information.- Overrides:
getMessage
in classjava.lang.Throwable
-
getMessageWithoutLocation
public java.lang.String getMessageWithoutLocation()
Returns the error message without location information.
-
getSource
public java.lang.String 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.
-
-