Module jamal.api

Class BadSyntax

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    BadSyntaxAt

    public class BadSyntax
    extends java.lang.Exception
    This exception, as the name suggest, is thrown when the processor or a macro finds something it cannot interpret. This exception is always captured inside Jamal and then rethrown as a BadSyntaxAt exception adding the line reference information. This exception is used at code locations where it is not possible to identify the actual input location where the erroneous syntax started. See also BadSyntaxAt.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      BadSyntax()  
      BadSyntax​(java.lang.String message)  
      BadSyntax​(java.lang.String message, java.lang.Throwable cause)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getMessage()  
      java.util.List<java.lang.String> getParameters()  
      BadSyntax parameter​(java.lang.String param)  
      • 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

      • BadSyntax

        public BadSyntax()
      • BadSyntax

        public BadSyntax​(java.lang.String message)
      • BadSyntax

        public BadSyntax​(java.lang.String message,
                         java.lang.Throwable cause)
    • Method Detail

      • getParameters

        public java.util.List<java.lang.String> getParameters()
      • parameter

        public BadSyntax parameter​(java.lang.String param)
      • getMessage

        public java.lang.String getMessage()
        Overrides:
        getMessage in class java.lang.Throwable