FileDocCategorySizeDatePackage
XMLException.javaAPI DocGlassfish v2 API3015Tue May 22 16:54:30 BST 2007oracle.toplink.essentials.internal.ejb.cmp3.xml.parser

XMLException

public class XMLException extends RuntimeException

Fields Summary
private List
m_nestedExceptions
Constructors Summary
public XMLException()

        super();
        m_nestedExceptions = new ArrayList(); 
    
Methods Summary
public voidaddNestedException(java.lang.Exception nestedException)

        m_nestedExceptions.add(nestedException);
    
public java.lang.StringgetMessage()

        StringBuffer buffer = new StringBuffer();
        Exception nestedException;
        for (int x=0; x<m_nestedExceptions.size(); x++) {
            nestedException = (Exception) m_nestedExceptions.get(x);
            buffer.append(Helper.cr());
            buffer.append('(");
            buffer.append(x + 1);
            buffer.append(". ");
            buffer.append(nestedException.getMessage());
            buffer.append(')");
        }
        return buffer.toString();
    
public java.lang.StringtoString()

 return getMessage();