Example usage for org.apache.commons.jcs.access.exception CacheException printStackTrace

List of usage examples for org.apache.commons.jcs.access.exception CacheException printStackTrace

Introduction

In this page you can find the example usage for org.apache.commons.jcs.access.exception CacheException printStackTrace.

Prototype

public void printStackTrace() 

Source Link

Document

Prints this throwable and its backtrace to the standard error stream.

Usage

From source file:org.mkosem.impl.JCSCache.java

@Override
public void destroy() {
    try {//from  w  w w  .  j  av  a  2  s .  co m
        cache_.clear();
        cache_.dispose();
        CompositeCacheManager.getInstance().shutDown();
    } catch (CacheException e) {
        e.printStackTrace();
    }
}

From source file:org.mkosem.impl.JCSCache.java

@Override
public void put(K key, V value) {
    try {//from   w w  w . j  a va  2 s.  c o  m
        cache_.put(key, value);
    } catch (CacheException e) {
        e.printStackTrace();
    }
}