Class ErrorPages


  • public class ErrorPages
    extends java.lang.Object
    Class that maintains information about error page mappings.
    Author:
    Stuart Douglas
    • Constructor Summary

      Constructors 
      Constructor Description
      ErrorPages​(java.util.Map<java.lang.Integer,​java.lang.String> errorCodeLocations, java.util.Map<java.lang.Class<? extends java.lang.Throwable>,​java.lang.String> exceptionMappings, java.lang.String defaultErrorPage)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getErrorLocation​(int code)  
      java.lang.String getErrorLocation​(java.lang.Throwable exception)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ErrorPages

        public ErrorPages​(java.util.Map<java.lang.Integer,​java.lang.String> errorCodeLocations,
                          java.util.Map<java.lang.Class<? extends java.lang.Throwable>,​java.lang.String> exceptionMappings,
                          java.lang.String defaultErrorPage)
    • Method Detail

      • getErrorLocation

        public java.lang.String getErrorLocation​(int code)
      • getErrorLocation

        public java.lang.String getErrorLocation​(java.lang.Throwable exception)