Package org.apache.bcel.verifier.exc
Class AssertionViolatedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.bcel.verifier.exc.AssertionViolatedException
- All Implemented Interfaces:
Serializable
Instances of this class should never be thrown. When such an instance is thrown,
this is due to an INTERNAL ERROR of BCEL's class file verifier "JustIce".
- Version:
- $Id: AssertionViolatedException.java 386056 2006-03-15 11:31:56Z tcurdt $
- Author:
- Enver Haase
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new AssertionViolatedException with null as its error message string.AssertionViolatedException
(String message) Constructs a new AssertionViolatedException with the specified error message preceded by "INTERNAL ERROR: ". -
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 AssertionViolatedException object.static void
DO NOT USE.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AssertionViolatedException
public AssertionViolatedException()Constructs a new AssertionViolatedException with null as its error message string. -
AssertionViolatedException
Constructs a new AssertionViolatedException with the specified error message preceded by "INTERNAL ERROR: ".
-
-
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 AssertionViolatedException object.- Overrides:
getMessage
in classThrowable
- Returns:
- the error message string of this AssertionViolatedException.
-
main
DO NOT USE. It's for experimental testing during development only.
-