Example usage for javax.xml.registry JAXRException fillInStackTrace

List of usage examples for javax.xml.registry JAXRException fillInStackTrace

Introduction

In this page you can find the example usage for javax.xml.registry JAXRException fillInStackTrace.

Prototype

public synchronized Throwable fillInStackTrace() 

Source Link

Document

Fills in the execution stack trace.

Usage

From source file:it.cnr.icar.eric.client.ui.swing.JAXRClient.java

/**
 * DOCUMENT ME!/*from ww  w.ja v  a  2s .  com*/
 *
 * @param objectsToSave DOCUMENT ME!
 *
 * @return DOCUMENT ME!
 *
 * @throws JAXRException DOCUMENT ME!
 */
public BulkResponse saveObjects(Collection<?> objectsToSave, boolean versionMetadata, boolean versionContent)
        throws JAXRException {
    BulkResponse resp = null;

    try {
        HashMap<String, String> slotsMap = new HashMap<String, String>();
        if (!versionMetadata) {
            slotsMap.put(BindingUtility.CANONICAL_SLOT_LCM_DONT_VERSION, "true");
        }
        if (!versionContent) {
            slotsMap.put(BindingUtility.CANONICAL_SLOT_LCM_DONT_VERSION_CONTENT, "true");
        }
        resp = lcm.saveObjects(objectsToSave, slotsMap);
        checkBulkResponse(resp);
    } catch (JAXRException e) {
        RegistryBrowser.displayError(e);
        e.fillInStackTrace();
        throw e;
    }

    return resp;
}