Top Description Fields Constructors Methods
org.apache.bcel.verifier.exc

public abstract Class VerifierConstraintViolatedException

extends RuntimeException
Class Inheritance
Known Direct Subclasses
org.apache.bcel.verifier.exc.LoadingException, org.apache.bcel.verifier.exc.VerificationException

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.

Field Summary

Modifier and TypeField and Description
private String
detailMessage

Hides java.lang.Throwable.detailMessage.

The specified error message.
private static final long

Constructor Summary

AccessConstructor and Description
pack-priv
VerifierConstraintViolatedException()

Constructs a new VerifierConstraintViolatedException with null as its error message string.

pack-priv
VerifierConstraintViolatedException(final String message)

Constructs a new VerifierConstraintViolatedException with the specified error message.

pack-priv
VerifierConstraintViolatedException(final String message, final Throwable initCause)

Constructs a new VerifierConstraintViolationException with the specified error message and cause

Method Summary

Modifier and TypeMethod and Description
public void
extendMessage(String pre, String post)

Extends the error message with a string before ("pre") and after ("post") the 'old' error message.

public String

Returns:

the error message string of this VerifierConstraintViolatedException.
getMessage
()

Overrides java.lang.Throwable.getMessage.

Returns the error message string of this VerifierConstraintViolatedException object.

Field Detail

detailMessageback to summary
private String detailMessage

Hides java.lang.Throwable.detailMessage.

The specified error message.

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.RuntimeException.serialVersionUID.

Constructor Detail

VerifierConstraintViolatedExceptionback to summary
pack-priv VerifierConstraintViolatedException()

Constructs a new VerifierConstraintViolatedException with null as its error message string.

VerifierConstraintViolatedExceptionback to summary
pack-priv VerifierConstraintViolatedException(final String message)

Constructs a new VerifierConstraintViolatedException with the specified error message.

VerifierConstraintViolatedExceptionback to summary
pack-priv VerifierConstraintViolatedException(final String message, final Throwable initCause)

Constructs a new VerifierConstraintViolationException with the specified error message and cause

Method Detail

extendMessageback to summary
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.

getMessageback to summary
public String getMessage()

Overrides java.lang.Throwable.getMessage.

Returns the error message string of this VerifierConstraintViolatedException object.

Returns:String

the error message string of this VerifierConstraintViolatedException.

Annotations
@Override