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

VerifierConstraintViolatedException

public abstract class VerifierConstraintViolatedException extends RuntimeException
Instances of this class are thrown by BCEL's class file verifier "JustIce" whenever verification proves that some constraint of a class file (as stated in the Java Virtual Machine Specification, Edition 2) is violated. This is roughly equivalent to the VerifyError the JVM-internal verifiers throw.
version
$Id: VerifierConstraintViolatedException.java,v 1.1.1.1 2001/10/29 20:00:34 jvanzyl Exp $
author
Enver Haase

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

		super();
	
VerifierConstraintViolatedException(String message)
Constructs a new VerifierConstraintViolatedException with the specified error message.

		super(message); // Not that important
		detailMessage = message;
	
Methods Summary
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 VerifierConstraintViolatedException object.

return
the error message string of this VerifierConstraintViolatedException.

		return detailMessage;