public void set(Throwable t) {
        try {
            lock.writeLock().lock();

            this.t = t;
        } finally {
            lock.writeLock().unlock();
        }
    }
public void set(Throwable t) {
        try {
            lock.writeLock().lock();

            this.t = t;
        } finally {
            lock.writeLock().unlock();
        }
    }
public void set ( Throwable t ) { try { lock . writeLock ( ) . lock ( ) ; this . t = t ; } finally { lock . writeLock ( ) . unlock ( ) ; } }
This method updates state with given Throwable
@param t
This method updates state with given Throwable