Class PreprocessorException

  • All Implemented Interfaces:
    java.io.Serializable

    public class PreprocessorException
    extends java.lang.RuntimeException
    The exception allows to save some useful data about preprocessing files like the current include stack and the error string index
    See Also:
    Serialized Form
    • Field Detail

      • processingString

        private final java.lang.String processingString
    • Constructor Detail

      • PreprocessorException

        public PreprocessorException​(java.lang.String message,
                                     java.lang.String processedText,
                                     @MustNotContainNull
                                     FilePositionInfo[] includeStack,
                                     java.lang.Throwable cause)
    • Method Detail

      • getRootFile

        public java.io.File getRootFile()
      • getProcessingFile

        public java.io.File getProcessingFile()
      • getStringIndex

        public int getStringIndex()
      • getProcessingString

        public java.lang.String getProcessingString()
      • convertIncludeStackToString

        private java.lang.String convertIncludeStackToString()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Throwable
      • extractPreprocessorException

        public static PreprocessorException extractPreprocessorException​(java.lang.Throwable thr)
      • referenceAsString

        public static java.lang.String referenceAsString​(char fillChar,
                                                         java.lang.Throwable thr)