Package org.openeai.transport

Examples of org.openeai.transport.TransportException


      return theObject.create(this);
    }
    catch (Exception e) {
      String errMessage = "Error processing the create request for object " +
        theObject.getClass().getName() + "  Exception: " + e.getMessage();
      throw new TransportException(errMessage, e);
    }
  }
View Full Code Here


      return theObject.update(this);
    }
    catch (Exception e) {
      String errMessage = "Error processing the update request for object " +
        theObject.getClass().getName() + "  Exception: " + e.getMessage();
      throw new TransportException(errMessage, e);
    }
  }
View Full Code Here

      return theObject.delete(deleteAction, this);
    }
    catch (Exception e) {
      String errMessage = "Error processing the delete request for object " +
        theObject.getClass().getName() + "  Exception: " + e.getMessage();
      throw new TransportException(errMessage, e);
    }
  }
View Full Code Here

      return theObject.query(keyObject, this);
    }
    catch (Exception e) {
      String errMessage = "Error processing the query request for object " +
        theObject.getClass().getName() + "  Exception: " + e.getMessage();
      throw new TransportException(errMessage, e);
    }   
  }
View Full Code Here

      return theObject.query(keyObject, this);
    }
    catch (Exception e) {
      String errMessage = "Error processing the generate request for object " +
        theObject.getClass().getName() + "  Exception: " + e.getMessage();
      throw new TransportException(errMessage, e);
    }       
  }
View Full Code Here

        XmlDocumentReader xmlReader = new XmlDocumentReader();
        responseDoc = xmlReader.initializeDocument(new ByteArrayInputStream(responseText.getBytes()), theObject.getValidation());
      }
       catch (XmlDocumentReaderException e) {
        logger.fatal("Error parsing Standard Response document.  Contents: " + responseText);
        throw new TransportException("Standard Response document is not valid!  Exception: " + e.getMessage(), e);
       }
    }
    catch (JMSException e) {
      throw new TransportException(e.getMessage(), e);
    }

    return responseDoc;
  }
View Full Code Here

        }
      }
      catch (JMSException je) {
        logger.fatal("Error rolling transaction back or determining the transaction mode.");
        logger.fatal(je.getMessage(), je);
        throw new TransportException(je.getMessage(), je);
      }
    }
    catch (Exception e) {
      logger.fatal("Unknown exception occurred while attempting to publish the message.  Exception: " + e.getMessage());
      logger.fatal(e.getMessage(), e);
      TextMessage tMsg = (TextMessage)outMessage;
      try {
        logger.fatal("Message contents: \n" + tMsg.getText());
      }
      catch (JMSException je2) { }
      throw new TransportException(e.getMessage(), e);
    }
    return true;
  }
View Full Code Here

      theObject.createSync(this);
    }
    catch (Exception e) {
      String errMessage = "Error processing the create sync for object " +
        getClass().getName() + "  Exception: " + e.getMessage();
      throw new TransportException(errMessage, e);
    }
  }
View Full Code Here

      theObject.updateSync(this);
    }
    catch (Exception e) {
      String errMessage = "Error processing the update sync for object " +
        getClass().getName() + "  Exception: " + e.getMessage();
      throw new TransportException(errMessage, e);
    }
  }
View Full Code Here

      theObject.deleteSync(deleteAction, this);
    }
    catch (Exception e) {
      String errMessage = "Error processing the delete sync for object " +
        getClass().getName() + "  Exception: " + e.getMessage();
      throw new TransportException(errMessage, e);
    }
  }
View Full Code Here

TOP

Related Classes of org.openeai.transport.TransportException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.