FileDocCategorySizeDatePackage
EJBQLException.javaAPI DocGlassfish v2 API4080Fri May 04 22:34:50 BST 2007com.sun.jdo.spi.persistence.support.ejb.ejbqlc

EJBQLException

public class EJBQLException extends RuntimeException
This class represents errors reported by the EJBQL compiler.
author
Michael Bouschen

Fields Summary
Throwable
cause
The Throwable that caused this EJBQLException.
Constructors Summary
public EJBQLException()
Creates a new EJBQLException without detail message.

    
public EJBQLException(String msg)
Constructs a new EJBQLException with the specified detail message.

param
msg the detail message.

        super(msg);
    
public EJBQLException(String msg, Throwable cause)
Constructs a new EJBQLException with the specified detail message and cause.

param
msg the detail message.
param
cause the cause Throwable.

        super(msg);
        this.cause = cause;
    
Methods Summary
public java.lang.ThrowablegetCause()
Returns the cause of this EJBQLException or null if the cause is nonexistent or unknown.

return
the cause of this or null if the cause is nonexistent or unknown.

        return cause;
    
public java.lang.StringtoString()
The String representation includes the name of the class, the descriptive comment (if any), and the String representation of the cause Throwable (if any).

return
the String.

        // calculate approximate size of the String to return
        StringBuffer sb = new StringBuffer();
        sb.append (super.toString());
        // include cause Throwable information
        if (cause != null) {
            sb.append("\n");  //NOI18N
            sb.append("Nested exception"); //NOI18N
            sb.append("\n");  //NOI18N
            sb.append(cause.toString());
        }
        return sb.toString();