Package org.apache.bcel.verifier.exc
Class VerifierConstraintViolatedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.bcel.verifier.exc.VerifierConstraintViolatedException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
LoadingException
,VerificationException
public abstract class VerifierConstraintViolatedException extends java.lang.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.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
detailMessage
The specified error message.private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description VerifierConstraintViolatedException()
Constructs a new VerifierConstraintViolatedException with null as its error message string.VerifierConstraintViolatedException(java.lang.String message)
Constructs a new VerifierConstraintViolatedException with the specified error message.VerifierConstraintViolatedException(java.lang.String message, java.lang.Throwable initCause)
Constructs a new VerifierConstraintViolationException with the specified error message and cause
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
extendMessage(java.lang.String pre, java.lang.String post)
Extends the error message with a string before ("pre") and after ("post") the 'old' error message.java.lang.String
getMessage()
Returns the error message string of this VerifierConstraintViolatedException object.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
detailMessage
private java.lang.String detailMessage
The specified error message.
-
-
Constructor Detail
-
VerifierConstraintViolatedException
VerifierConstraintViolatedException()
Constructs a new VerifierConstraintViolatedException with null as its error message string.
-
VerifierConstraintViolatedException
VerifierConstraintViolatedException(java.lang.String message)
Constructs a new VerifierConstraintViolatedException with the specified error message.
-
VerifierConstraintViolatedException
VerifierConstraintViolatedException(java.lang.String message, java.lang.Throwable initCause)
Constructs a new VerifierConstraintViolationException with the specified error message and cause
-
-
Method Detail
-
extendMessage
public void extendMessage(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.
-
getMessage
public java.lang.String getMessage()
Returns the error message string of this VerifierConstraintViolatedException object.- Overrides:
getMessage
in classjava.lang.Throwable
- Returns:
- the error message string of this VerifierConstraintViolatedException.
-
-