FileDocCategorySizeDatePackage
DetailedSemanticException.javaAPI DocHibernate 3.2.51664Sat Feb 12 13:27:50 GMT 2005org.hibernate.hql.ast

DetailedSemanticException

public class DetailedSemanticException extends antlr.SemanticException
Thrown when a call to the underlying Hibernate engine fails, indicating some form of semantic exception (e.g. a class name was not found in the current mappings, etc.).

Fields Summary
private Throwable
cause
private boolean
showCauseMessage
Constructors Summary
public DetailedSemanticException(String message)


	   
		super( message );
	
public DetailedSemanticException(String s, Throwable e)

		super( s );
		cause = e;
	
Methods Summary
public voidprintStackTrace()
Prints a stack trace.

		super.printStackTrace();
		if ( cause != null ) {
			cause.printStackTrace();
		}
	
public voidprintStackTrace(java.io.PrintStream s)
Prints a stack trace to the specified print stream.

param
s the print stream.

		super.printStackTrace( s );
		if ( cause != null ) {
			s.println( "Cause:" );
			cause.printStackTrace( s );
		}
	
public voidprintStackTrace(java.io.PrintWriter w)
Prints this throwable and its backtrace to the specified print writer.

param
w the print writer.s

		super.printStackTrace( w );
		if ( cause != null ) {
			w.println( "Cause:" );
			cause.printStackTrace( w );
		}
	
public java.lang.StringtoString()
Converts everything to a string.

return
a string.

		if ( cause == null || ( !showCauseMessage ) ) {
			return super.toString();
		}
		else {
			return super.toString() + "\n[cause=" + cause.toString() + "]";
		}