jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/packaging/mime/MessagingException.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
119 public String getMessage() { |
119 public String getMessage() { |
120 if (next == null) |
120 if (next == null) |
121 return super.getMessage(); |
121 return super.getMessage(); |
122 Exception n = next; |
122 Exception n = next; |
123 String s = super.getMessage(); |
123 String s = super.getMessage(); |
124 StringBuffer sb = new StringBuffer(s == null ? "" : s); |
124 StringBuilder sb = new StringBuilder(s == null ? "" : s); |
125 while (n != null) { |
125 while (n != null) { |
126 sb.append(";\n nested exception is:\n\t"); |
126 sb.append(";\n nested exception is:\n\t"); |
127 if (n instanceof MessagingException) { |
127 if (n instanceof MessagingException) { |
128 MessagingException mex = (MessagingException)n; |
128 MessagingException mex = (MessagingException)n; |
129 sb.append(n.getClass().toString()); |
129 sb.append(n.getClass().toString()); |