Package com.inet.lib.less
Class LessException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.inet.lib.less.LessException
-
- All Implemented Interfaces:
java.io.Serializable
public class LessException extends java.lang.RuntimeExceptionA exception that occur if some can not parse or converted.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LessException(java.lang.String message)Constructs a new less exception with the specified detail message.LessException(java.lang.String message, java.lang.Throwable cause)Constructs a new runtime exception with the specified detail message and cause.LessException(java.lang.Throwable cause)Constructs a new runtime exception with the specified cause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetMessage()The message plus the less file stacktrace.java.lang.StringgetOriginalMessage()The message without stacktrace.java.util.List<LessFilePosition>getPositions()Get the less file stacktrace
-
-
-
Constructor Detail
-
LessException
public LessException(java.lang.String message)
Constructs a new less exception with the specified detail message.- Parameters:
message- the detail message.
-
LessException
public LessException(java.lang.Throwable cause)
Constructs a new runtime exception with the specified cause.- Parameters:
cause- the cause
-
LessException
public LessException(java.lang.String message, java.lang.Throwable cause)Constructs a new runtime exception with the specified detail message and cause.- Parameters:
message- the detail message.cause- the cause
-
-
Method Detail
-
getPositions
public java.util.List<LessFilePosition> getPositions()
Get the less file stacktrace- Returns:
- the stack
-
getOriginalMessage
public java.lang.String getOriginalMessage()
The message without stacktrace.- Returns:
- the message
-
getMessage
public java.lang.String getMessage()
The message plus the less file stacktrace.- Overrides:
getMessagein classjava.lang.Throwable
-
-