Class ErrorDispatcher


  • public class ErrorDispatcher
    extends java.lang.Object
    Class responsible for dispatching JSP parse and javac compilation errors to the configured error handler. This class is also responsible for localizing any error codes before they are passed on to the configured error handler. In the case of a Java compilation error, the compiler error message is parsed into an array of JavacErrorDetail instances, which is passed on to the configured error handler.
    • Constructor Summary

      Constructors 
      Constructor Description
      ErrorDispatcher​(boolean jspcMode)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static JavacErrorDetail createJavacError​(java.lang.String fname, Node.Nodes page, java.lang.StringBuilder errMsgBuf, int lineNum)  
      private void dispatch​(Mark where, java.lang.String errCode, java.lang.Object[] args, java.lang.Exception e)  
      void javacError​(java.lang.String errorReport, java.lang.Exception e)  
      void javacError​(JavacErrorDetail[] javacErrors)  
      void jspError​(java.lang.Exception e)  
      void jspError​(java.lang.String errCode)  
      void jspError​(java.lang.String errCode, java.lang.String... args)  
      void jspError​(java.lang.String errCode, java.lang.String arg, java.lang.Exception e)  
      void jspError​(Mark where, java.lang.Exception e)  
      void jspError​(Mark where, java.lang.String errCode)  
      void jspError​(Mark where, java.lang.String errCode, java.lang.String... args)  
      void jspError​(Node n, java.lang.String errCode)  
      void jspError​(Node n, java.lang.String errCode, java.lang.String... args)  
      void jspError​(Node n, java.lang.String errCode, java.lang.String arg, java.lang.Exception e)  
      static JavacErrorDetail[] parseJavacMessage​(Node.Nodes pageNodes, java.lang.String errMsg, java.lang.String fname)  
      void throwException​(Mark where, JasperException je)
      Creates and throws a new exception from the given JasperException, by prepending the given location information (containing file name, line number, and column number) to the message of the given exception, and copying the stacktrace of the given exception to the new exception.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait