Class LessException

  • All Implemented Interfaces:
    java.io.Serializable

    public class LessException
    extends java.lang.RuntimeException
    A 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.String getMessage()
      The message plus the less file stacktrace.
      java.lang.String getOriginalMessage()
      The message without stacktrace.
      java.util.List<LessFilePosition> getPositions()
      Get the less file stacktrace
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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:
        getMessage in class java.lang.Throwable