Class ServiceException

    • Constructor Detail

      • ServiceException

        public ServiceException​(int status,
                                String message)
      • ServiceException

        public ServiceException​(int status,
                                String message,
                                Throwable cause)
      • ServiceException

        public ServiceException​(int status,
                                ErrorMessage errorMessage,
                                Throwable cause)
    • Method Detail

      • toJson

        public String toJson()
      • generateResponse

        public void generateResponse​(org.kohsuke.stapler.StaplerRequest req,
                                     org.kohsuke.stapler.StaplerResponse rsp,
                                     Object node)
                              throws IOException,
                                     javax.servlet.ServletException
        Specified by:
        generateResponse in interface org.kohsuke.stapler.HttpResponse
        Throws:
        IOException
        javax.servlet.ServletException