org.springframework.boot.diagnostics

Class FailureAnalysis

  • java.lang.Object
    • org.springframework.boot.diagnostics.FailureAnalysis


  • public class FailureAnalysis
    extends java.lang.Object
    The result of analyzing a failure.
    Since:
    1.4.0
    • Constructor Summary

      Constructors 
      Constructor and Description
      FailureAnalysis(java.lang.String description, java.lang.String action, java.lang.Throwable cause)
      Creates a new FailureAnalysis with the given description and action, if any, that the user should take to address the problem.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String getAction()
      Returns the action, if any, to be taken to address the failure.
      java.lang.Throwable getCause()
      Returns the cause of the failure.
      java.lang.String getDescription()
      Returns a description of the failure.
      • Methods inherited from class java.lang.Object

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

      • FailureAnalysis

        public FailureAnalysis(java.lang.String description,
                               java.lang.String action,
                               java.lang.Throwable cause)
        Creates a new FailureAnalysis with the given description and action, if any, that the user should take to address the problem. The failure had the given underlying cause.
        Parameters:
        description - the description
        action - the action
        cause - the cause
    • Method Detail

      • getDescription

        public java.lang.String getDescription()
        Returns a description of the failure.
        Returns:
        the description
      • getAction

        public java.lang.String getAction()
        Returns the action, if any, to be taken to address the failure.
        Returns:
        the action or null
      • getCause

        public java.lang.Throwable getCause()
        Returns the cause of the failure.
        Returns:
        the cause