Example usage for java.lang Throwable getLocalizedMessage

List of usage examples for java.lang Throwable getLocalizedMessage

Introduction

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

Prototype

public String getLocalizedMessage() 

Source Link

Document

Creates a localized description of this throwable.

Usage

From source file:com.rapidminer.cryptography.hashing.DigesterProvider.java

/**
 * Convert an array of Objects to a byte array. The values of the object
 * array have to be an instance of String, Integer, Long, Float, Date or
 * Double./*from   w  w  w .  ja  v a 2 s.co m*/
 */
private byte[] getBytes(Object[] values) throws JEPFunctionException {
    try (ByteArrayOutputStream baos = new ByteArrayOutputStream();
            DataOutputStream dos = new DataOutputStream(baos);) {
        for (Object value : values) {
            writeBytes(value, dos);
        }
        return baos.toByteArray();
    } catch (Throwable t) {
        throw new JEPFunctionException("Error calculating hash value: " + t.getLocalizedMessage());
    }
}

From source file:com.runwaysdk.logging.RunwayLog.java

public void trace(Object arg0) {
    try {// ww  w.  j  a v  a  2s.  c o  m
        addSessionIdInfo();
        logger.trace(arg0);
        removeSessionIdInfo();
    } catch (Throwable e) {
        System.err.println(e.getLocalizedMessage());
        System.err.println(e.getStackTrace());
    }
}

From source file:com.runwaysdk.logging.RunwayLog.java

public void trace(Object arg0, Throwable arg1) {
    try {/* ww w .ja va 2s  .  c o m*/
        addSessionIdInfo();
        logger.trace(arg0, arg1);
        removeSessionIdInfo();
    } catch (Throwable e) {
        System.err.println(e.getLocalizedMessage());
        System.err.println(e.getStackTrace());
    }
}

From source file:com.runwaysdk.logging.RunwayLog.java

public void debug(Object arg0) {
    try {/*  w  ww . j  a  va 2 s. com*/
        addSessionIdInfo();
        logger.debug(arg0);
        removeSessionIdInfo();
    } catch (Throwable e) {
        System.err.println(e.getLocalizedMessage());
        System.err.println(e.getStackTrace());
    }
}

From source file:com.runwaysdk.logging.RunwayLog.java

public void debug(Object arg0, Throwable arg1) {
    try {//from  ww  w  .j av  a2s.c om
        addSessionIdInfo();
        logger.debug(arg0, arg1);
        removeSessionIdInfo();
    } catch (Throwable e) {
        System.err.println(e.getLocalizedMessage());
        System.err.println(e.getStackTrace());
    }
}

From source file:com.runwaysdk.logging.RunwayLog.java

public void info(Object arg0) {
    try {/* www. j a  va  2 s. com*/
        addSessionIdInfo();
        logger.info(arg0);
        removeSessionIdInfo();
    } catch (Throwable e) {
        System.err.println(e.getLocalizedMessage());
        System.err.println(e.getStackTrace());
    }
}

From source file:com.runwaysdk.logging.RunwayLog.java

public void info(Object arg0, Throwable arg1) {
    try {/*from  www. j  a v  a2 s  .com*/
        addSessionIdInfo();
        logger.info(arg0, arg1);
        removeSessionIdInfo();
    } catch (Throwable e) {
        System.err.println(e.getLocalizedMessage());
        System.err.println(e.getStackTrace());
    }
}

From source file:com.runwaysdk.logging.RunwayLog.java

public void warn(Object arg0) {
    try {/*from   w  ww.  jav a 2  s.com*/
        addSessionIdInfo();
        logger.warn(arg0);
        removeSessionIdInfo();
    } catch (Throwable e) {
        System.err.println(e.getLocalizedMessage());
        System.err.println(e.getStackTrace());
    }
}

From source file:com.runwaysdk.logging.RunwayLog.java

public void warn(Object arg0, Throwable arg1) {
    try {//from w w  w.ja  v a 2  s  . c  om
        addSessionIdInfo();
        logger.warn(arg0, arg1);
        removeSessionIdInfo();
    } catch (Throwable e) {
        System.err.println(e.getLocalizedMessage());
        System.err.println(e.getStackTrace());
    }
}

From source file:com.runwaysdk.logging.RunwayLog.java

public void error(Object arg0) {
    try {// w w w.j  a v a2 s .com
        addSessionIdInfo();
        logger.error(arg0);
        removeSessionIdInfo();
    } catch (Throwable e) {
        System.err.println(e.getLocalizedMessage());
        System.err.println(e.getStackTrace());
    }
}