com.softicar.platform.common.core.throwable.Throwables Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of platform-common Show documentation
Show all versions of platform-common Show documentation
The SoftiCAR Platform is a lightweight, Java-based library to create interactive business web applications.
package com.softicar.platform.common.core.throwable;
/**
* Utility methods for exceptions.
*
* @author Oliver Richers
*/
public class Throwables {
public static boolean isCausedBy(Class throwableClass, Throwable throwable) {
return new ThrowableCauseTester(throwableClass).test(throwable);
}
}