com.github.yoojia.halo.utils.Exceptions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of halo-core Show documentation
Show all versions of halo-core Show documentation
A FAST && THIN && HIGH SCALABLE Java web framework
package com.github.yoojia.halo.utils;
/**
* @author YOOJIA.CHEN ([email protected])
*/
public final class Exceptions {
public static String message(Exception e){
String errorText = e.getMessage();
if (errorText == null) {
errorText = e.getCause() != null ? e.getCause().getMessage() : null;
}
return errorText;
}
}