Example usage for org.apache.commons.transaction.file ResourceManagerException toString

List of usage examples for org.apache.commons.transaction.file ResourceManagerException toString

Introduction

In this page you can find the example usage for org.apache.commons.transaction.file ResourceManagerException toString.

Prototype

public String toString() 

Source Link

Document

Returns a short description of this throwable.

Usage

From source file:org.apache.slide.store.txfile.AbstractTxFileStoreService.java

protected XAException createXAException(ResourceManagerException e) {
    if (e.getStatus() == ResourceManagerException.ERR_DUP_TX) {
        return new XAException(XAException.XAER_DUPID);
    } else if (e.getStatus() == ResourceManagerException.ERR_TXID_INVALID) {
        return new XAException(XAException.XAER_NOTA);
    } else {/*from   ww w  .  j a va  2s  .  c om*/
        return new XAException(e.toString());
    }
}