All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.hippo4j.starter.core.ConfigEmptyAnalyzer Maven / Gradle / Ivy

There is a newer version: 1.5.0
Show newest version
package cn.hippo4j.starter.core;

import org.springframework.boot.diagnostics.AbstractFailureAnalyzer;
import org.springframework.boot.diagnostics.FailureAnalysis;

/**
 * Config empty analyzer.
 *
 * @author chen.ma
 * @date 2021/11/28 21:59
 */
public class ConfigEmptyAnalyzer extends AbstractFailureAnalyzer {

    @Override
    protected FailureAnalysis analyze(Throwable rootFailure, ConfigEmptyException cause) {
        return new FailureAnalysis(cause.getDescription(), cause.getAction(), cause);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy