} catch (Exception e) { Throwable rootCause = ExceptionUtils.getRootCause(e);
return effectiveLicense; return createOrGetTrial("Unable to verify license due to "+ExceptionUtils.getRootCause(e));
Assert.fail(); } catch (Exception e) { Throwable root = ExceptionUtils.getRootCause(e); e.printStackTrace(); Assert.assertTrue(root.getMessage().contains("Wrong user in scroll context"));
Assert.fail(); } catch (Exception e) { Throwable root = ExceptionUtils.getRootCause(e); e.printStackTrace(); Assert.assertTrue(root.getMessage().contains("Wrong user in scroll context"));
public static Throwable getRootCause(final Throwable e) { if(e == null) { return null; } final Throwable cause = e.getCause(); if(cause == null) { return e; } return getRootCause(cause); }
log.debug("Unable to validate CRL: "+ExceptionsHelper.stackTrace(e)); log.warn("Unable to validate CRL: "+ExceptionUtils.getRootCause(e));
} catch (Exception e) { Throwable rootCause = ExceptionUtils.getRootCause(e);
return effectiveLicense; return createOrGetTrial("Unable to verify license due to "+ExceptionUtils.getRootCause(e));
Assert.fail(); } catch (Exception e1) { Throwable e = ExceptionUtils.getRootCause(e1); if(allowOpenSSL) { Assert.assertTrue(e.toString(), e.toString().contains("no cipher match"));
Assert.fail(); } catch (CertificateException e) { Assert.assertTrue(ExceptionUtils.getRootCause(e) instanceof CertificateRevokedException);
validator.validate(certsToValidate.toArray(new X509Certificate[0])); } catch (CertificateException e) { Assert.fail(ExceptionsHelper.stackTrace(ExceptionUtils.getRootCause(e)));
Assert.fail(); } catch (CertificateException e) { Assert.assertTrue(ExceptionUtils.getRootCause(e) instanceof CertificateRevokedException);