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:
Serializable
- Direct Known Subclasses:
LoadingException
,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.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
The specified error message.private static final long
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new VerifierConstraintViolatedException with null as its error message string.Constructs a new VerifierConstraintViolatedException with the specified error message.VerifierConstraintViolatedException
(String message, Throwable initCause) Constructs a new VerifierConstraintViolationException with the specified error message and cause -
Method Summary
Modifier and TypeMethodDescriptionvoid
extendMessage
(String pre, String post) Extends the error message with a string before ("pre") and after ("post") the 'old' error message.Returns the error message string of this VerifierConstraintViolatedException object.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
detailMessage
The specified error message.
-
-
Constructor Details
-
VerifierConstraintViolatedException
VerifierConstraintViolatedException()Constructs a new VerifierConstraintViolatedException with null as its error message string. -
VerifierConstraintViolatedException
VerifierConstraintViolatedException(String message) Constructs a new VerifierConstraintViolatedException with the specified error message. -
VerifierConstraintViolatedException
Constructs a new VerifierConstraintViolationException with the specified error message and cause
-
-
Method Details
-
extendMessage
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
Returns the error message string of this VerifierConstraintViolatedException object.- Overrides:
getMessage
in classThrowable
- Returns:
- the error message string of this VerifierConstraintViolatedException.
-