Class ServletErrorUtil


  • public class ServletErrorUtil
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void badRequest​(javax.servlet.http.HttpServletResponse resp, java.lang.String message)  
      static void internalServerError​(javax.servlet.http.HttpServletResponse resp)  
      static void notFound​(javax.servlet.http.HttpServletResponse resp, java.lang.String message)  
      static void okWithMessage​(javax.servlet.http.HttpServletResponse resp, java.lang.String message)  
      • Methods inherited from class java.lang.Object

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

      • ServletErrorUtil

        public ServletErrorUtil()
    • Method Detail

      • internalServerError

        public static void internalServerError​(javax.servlet.http.HttpServletResponse resp)
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • badRequest

        public static void badRequest​(javax.servlet.http.HttpServletResponse resp,
                                      java.lang.String message)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • okWithMessage

        public static void okWithMessage​(javax.servlet.http.HttpServletResponse resp,
                                         java.lang.String message)
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • notFound

        public static void notFound​(javax.servlet.http.HttpServletResponse resp,
                                    java.lang.String message)
                             throws java.io.IOException
        Throws:
        java.io.IOException