Example usage for java.lang Throwable getMessage

List of usage examples for java.lang Throwable getMessage

Introduction

In this page you can find the example usage for java.lang Throwable getMessage.

Prototype

public String getMessage() 

Source Link

Document

Returns the detail message string of this throwable.

Usage

From source file:com.serotonin.m2m2.LicMonitor.java

public void run(long fireTime) {
    ((ICoreLicense) Providers.get(ICoreLicense.class)).licenseCheck(false);

    for (Module module : ModuleRegistry.getModules())
        for (LicenseDefinition def : module.getDefinitions(LicenseDefinition.class))
            try {
                def.licenseCheck(false);
            } catch (Throwable e) {
                LOG.error(e.getMessage());
            }/* w w w.j a  v  a  2  s  .com*/
}

From source file:jndi.view.utils.ReflectionException.java

/**
 * @param cause//from  w w  w.j a  va  2s .  c o m
 *        the cause
 * @see NestedRuntimeException#NestedRuntimeException(Throwable)
 */
public ReflectionException(final Throwable cause) {
    super(cause.getMessage(), cause);
}

From source file:com.microsoft.tfs.client.common.framework.command.exception.CoreExceptionHandler.java

@Override
public IStatus onException(final Throwable t) {
    log.error(t.getMessage(), t);

    if (t instanceof CoreException) {
        TfsTelemetryHelper.sendException((CoreException) t);

        return ((CoreException) t).getStatus();
    }//from  w  ww.  j  av a 2s  .  co  m

    return null;
}

From source file:daveayan.gherkinsalad.browser.factory.IeBrowser.java

public WebDriver getDriver() {
    try {/*from  w ww  .ja  va2s  .  c  o  m*/
        WebDriver ie = new InternetExplorerDriver();
        return ie;
    } catch (Throwable th) {
        log.info(th.getMessage());
    }
    return new NullWebDriver();
}

From source file:eu.openanalytics.rsb.jaxrs.ThrowableExceptionMapper.java

public Response toResponse(final Throwable t) {
    LOGGER.error(t.getMessage(), t);

    return Response.status(Status.INTERNAL_SERVER_ERROR).type(MediaType.TEXT_PLAIN).entity(t.getMessage())
            .build();//from w w  w  .j ava 2s  .c  o m
}

From source file:com.glweb.web.struts.actions.HandleCreateException.java

public HandleCreateException(Throwable throwable) {
    super(throwable.getMessage(), throwable);
}

From source file:com.glweb.web.struts.actions.HandlePerformException.java

public HandlePerformException(Throwable throwable) {
    super(throwable.getMessage(), throwable);
}

From source file:main.java.vasolsim.common.GenericUtils.java

public static String exceptionToString(@Nonnull Throwable t) {
    StringBuilder out = new StringBuilder();
    out.append("Ex: ").append(t.toString()).append("\n");
    out.append("Cause: ").append(t.getCause()).append("\n");
    out.append("Message: ").append(t.getMessage()).append("\n\n");
    out.append("StackTrace:\n").append(ExceptionUtils.getStackTrace(t));
    out.append("---------- END ----------");

    return out.toString();
}

From source file:com.geodan.ngr.serviceintegration.TestCSWTransformer.java

private void test2() {
    try {//  w w w .j  a  v a2 s. c  om
        URL u = new URL("http://www.nationaalgeoregister.nl");
    } catch (Throwable t) {
        System.out.println(t.getMessage());
    }
}

From source file:org.auraframework.throwable.SystemErrorException.java

public SystemErrorException(Throwable cause) {
    this(cause.getMessage(), cause);
}