org.springframework.boot.diagnostics

Class FailureAnalysis



  • public class FailureAnalysis
    extends Object
    The result of analyzing a failure.
    Since:
    1.4.0
    Author:
    Andy Wilkinson
    • Constructor Detail

      • FailureAnalysis

        public FailureAnalysis(String description,
                               String action,
                               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 String getDescription()
        Returns a description of the failure.
        Returns:
        the description
      • getAction

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

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

Copyright © 2019 Pivotal Software, Inc.. All rights reserved.