SOA打印详细的报错信息

if (serviceData.sizeOfPartialErrors() > 0) {
  StringBuffer messageBuffer = new StringBuffer();
    ErrorStack errorStack;
    String[] messages;
    for (int i = 0, size = serviceData.sizeOfPartialErrors(); i < size; i++) {
        errorStack = serviceData.getPartialError(i);
        messages = errorStack.getMessages();
        for (int j = 0, jsize = messages.length; j < jsize; j++) {
           messageBuffer.append(messages[j] + "\n");
        }
    }
    System.out.println(messageBuffer.toString());
 }
                
                

  

上一篇:Bootstrap-v3-组件-导航


下一篇:一天一个 Linux 命令(15):more 命令