org.apache.bcel.verifier.exc

Class VerifierConstraintViolatedException

Known Direct Subclasses:
LoadingException, VerificationException

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 386056 2006-03-15 11:31:56Z tcurdt $
Author:
Enver Haase

Field Summary

private String
detailMessage
The specified error message.

Constructor Summary

VerifierConstraintViolatedException()
Constructs a new VerifierConstraintViolatedException with null as its error message string.
VerifierConstraintViolatedException(String message)
Constructs a new VerifierConstraintViolatedException with the specified error message.

Method Summary

void
extendMessage(String pre, String post)
Extends the error message with a string before ("pre") and after ("post") the 'old' error message.
String
getMessage()
Returns the error message string of this VerifierConstraintViolatedException object.

Field Details

detailMessage

private String detailMessage
The specified error message.

Constructor Details

VerifierConstraintViolatedException

(package private)  VerifierConstraintViolatedException()
Constructs a new VerifierConstraintViolatedException with null as its error message string.

VerifierConstraintViolatedException

(package private)  VerifierConstraintViolatedException(String message)
Constructs a new VerifierConstraintViolatedException with the specified error message.

Method Details

extendMessage

public void extendMessage(String pre,
                          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.

getMessage

public String getMessage()
Returns the error message string of this VerifierConstraintViolatedException object.
Returns:
the error message string of this VerifierConstraintViolatedException.