FileDocCategorySizeDatePackage
AssertionViolatedException.javaAPI DocJava SE 5 API4923Fri Aug 26 14:55:26 BST 2005com.sun.org.apache.bcel.internal.verifier.exc

AssertionViolatedException

public final class AssertionViolatedException extends RuntimeException
Instances of this class should never be thrown. When such an instance is thrown, this is due to an INTERNAL ERROR of BCEL's class file verifier "JustIce".
version
$Id: AssertionViolatedException.java,v 1.2 2003/10/07 07:38:12 rameshm Exp $
author
Enver Haase

Fields Summary
private String
detailMessage
The error message.
Constructors Summary
public AssertionViolatedException()
Constructs a new AssertionViolatedException with null as its error message string.

		super();
	
public AssertionViolatedException(String message)
Constructs a new AssertionViolatedException with the specified error message preceded by "INTERNAL ERROR: ".

		super(message = "INTERNAL ERROR: "+message); // Thanks to Java, the constructor call here must be first.
		detailMessage=message;
	
Methods Summary
public static void_main(java.lang.String[] args)
DO NOT USE. It's for experimental testing during development only.

		AssertionViolatedException ave = new AssertionViolatedException("Oops!");
		ave.extendMessage("\nFOUND:\n\t","\nExiting!!\n");
		throw ave;
	
public voidextendMessage(java.lang.String pre, java.lang.String post)
Extends the error message with a string before ("pre") and after ("post") the 'old' error message. All of these three strings are allowed to be null, and null is always replaced by the empty string (""). In particular, after invoking this method, the error message of this object can no longer be null.

		if (pre  == null) pre="";
		if (detailMessage == null) detailMessage="";
		if (post == null) post="";
		detailMessage = pre+detailMessage+post;
	
public java.lang.StringgetMessage()
Returns the error message string of this AssertionViolatedException object.

return
the error message string of this AssertionViolatedException.

		return detailMessage;
	
public java.lang.StringgetStackTraceAsStr()
Returns the backtrace of this AssertionViolatedException as a String.

return
The backtrace of this AssertionViolatedException as a String.

		return Utility.getStackTrace(this);