Class ErrorResponse

    • Constructor Detail

      • ErrorResponse

        public ErrorResponse​(String message)
      • ErrorResponse

        public ErrorResponse​(Throwable cause)
      • ErrorResponse

        public ErrorResponse​(String message,
                             Throwable cause)
    • Method Detail

      • getCause

        public Throwable getCause()
        The throwable. Can be a null object.
      • getMessage

        public String getMessage()
        The logged message.
      • logErrorTo

        public void logErrorTo​(org.exoplatform.services.log.Log log,
                               String logMessage)
        Logs an error message to the specified logger, using either the message or this ErrorResult's Throwable if available.
        Parameters:
        log - the logger
        logMessage - the additional message to log
      • toHTML

        public String toHTML()
        Provides an HTML description of the error, using either the message or the encapsulated Throwable.
        Returns:
        an html formatted string