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

com.hubspot.singularity.runner.base.shared.ExceptionChainParser Maven / Gradle / Ivy

There is a newer version: 1.5.0
Show newest version
package com.hubspot.singularity.runner.base.shared;

public class ExceptionChainParser {
  public static boolean exceptionChainContains(Exception e, Class clazz) {
    Throwable cause = e;
    while (null != (cause = cause.getCause())) {
      if (clazz.isInstance(cause)) {
        return true;
      }
    }
    return false;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy