Example usage for org.springframework.boot.diagnostics FailureAnalyzer analyze

List of usage examples for org.springframework.boot.diagnostics FailureAnalyzer analyze

Introduction

In this page you can find the example usage for org.springframework.boot.diagnostics FailureAnalyzer analyze.

Prototype

FailureAnalysis analyze(Throwable failure);

Source Link

Document

Returns an analysis of the given failure , or null if no analysis was possible.

Usage

From source file:org.springframework.boot.diagnostics.FailureAnalyzers.java

private FailureAnalysis analyze(Throwable failure, List<FailureAnalyzer> analyzers) {
    for (FailureAnalyzer analyzer : analyzers) {
        FailureAnalysis analysis = analyzer.analyze(failure);
        if (analysis != null) {
            return analysis;
        }//w w  w .jav  a 2s.com
    }
    return null;
}