Example usage for org.apache.commons.lang3.concurrent ConcurrentException getCause

List of usage examples for org.apache.commons.lang3.concurrent ConcurrentException getCause

Introduction

In this page you can find the example usage for org.apache.commons.lang3.concurrent ConcurrentException getCause.

Prototype

public synchronized Throwable getCause() 

Source Link

Document

Returns the cause of this throwable or null if the cause is nonexistent or unknown.

Usage

From source file:enumj.Lazy.java

@Override
public T get() {//from   w w  w.  j  a v  a  2 s . c  o  m
    try {
        final T result = super.get();
        initialized = true;
        return result;
    } catch (ConcurrentException ex) {
        throw new UnsupportedOperationException(ex.getCause());
    }
}