Package org.xmlBlaster.util.def

Examples of org.xmlBlaster.util.def.ErrorCode


         buf.append("cause (ex): '").append(e.getCause()).append("'\n");
      buf.append("localizedMessage: '").append(e.getLocalizedMessage()).append("'");
      buf.append("message: '").append(e.getMessage()).append("'");
      buf.append("toString: '").append(e.toString()).append("'");
      log.severe(buf.toString());
      ErrorCode errCode = ErrorCode.COMMUNICATION_NOCONNECTION;
      int code = e.code;
      if (code >= 400 && code < 500 && code != 408)
         errCode = ErrorCode.USER_MESSAGE_INVALID;
      return extractXmlBlasterException(glob, e, errCode, txt);
   }
View Full Code Here


   public static XmlBlasterException extractXmlBlasterException(Global glob, XmlRpcException e, ErrorCode fallback, String txt) {
      XmlBlasterException ex = null;
      if (e.linkedException != null && e.linkedException instanceof XmlBlasterException) {
         // since the xmlBlaster Exception here is an empty one (no global and stuff) we fill it again
         XmlBlasterException emptyEx = (XmlBlasterException)e.linkedException;
         ErrorCode code = ErrorCode.toErrorCode(emptyEx.getErrorCodeStr());
        
         Throwable cause = e.getCause();
         if (cause != null) {
            if (cause instanceof XmlBlasterException) {
               if (cause == emptyEx) {
View Full Code Here

      MsgUnitRaw msg = (MsgUnitRaw) msgVec.elementAt(0);
     
      if (msg.getContent() == null || msg.getContent().length == 0) {
         // For example when using XmlInterpreter
         // <qos><state id='ERROR' info='communication'/></qos>
         ErrorCode errorCode = ErrorCode.INTERNAL; // default setting
         try{
            // See serialization in XmlScriptInterpreter.java
            StatusQosData data = glob.getStatusQosFactory().readObject(msg.getQos());
            errorCode = ErrorCode.toErrorCode(data.getStateInfo());
         }
View Full Code Here

TOP

Related Classes of org.xmlBlaster.util.def.ErrorCode

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.