/** * Converts the exception into a well-formated XML error * message suitable for external uses. * * @param includeDebugInfo if {@code true}, include debug information. * Such error message should only be returned to internal clients. */ public String toXmlErrorMessage(boolean includeDebugInfo) { StringBuilder sb = new StringBuilder(); sb.append("<errors xmlns='http://schemas.google.com/g/2005'>\n"); for (ServiceException sibling : siblings) { addXmlError(sibling, sb, includeDebugInfo); } sb.append("</errors>\n"); return sb.toString(); }
/** * Converts the exception into a well-formated XML error * message suitable. * * @param includeDebugInfo if {@code true}, include debug information. * Such error message should only be returned to internal clients. */ public String toXmlErrorMessage(boolean includeDebugInfo) { StringBuilder sb = new StringBuilder(); sb.append("<errors xmlns='http://schemas.google.com/g/2005'>\n"); for (ServiceException sibling : siblings) { addXmlError(sibling, sb, includeDebugInfo); } sb.append("</errors>\n"); return sb.toString(); }
/** * Converts the exception into a well-formated XML error * message suitable for external uses. * * @param includeDebugInfo if {@code true}, include debug information. * Such error message should only be returned to internal clients. */ public String toXmlErrorMessage(boolean includeDebugInfo) { StringBuilder sb = new StringBuilder(); sb.append("<errors xmlns='http://schemas.google.com/g/2005'>\n"); for (ServiceException sibling : siblings) { addXmlError(sibling, sb, includeDebugInfo); } sb.append("</errors>\n"); return sb.toString(); }