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

public final Class AssertionViolatedException

extends RuntimeException
Class Inheritance
Imports
java.util.Arrays

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".

Field Summary

Modifier and TypeField and Description
private String
private static final long

Constructor Summary

AccessConstructor and Description
public
AssertionViolatedException()

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

public
AssertionViolatedException(String message)

Constructs a new AssertionViolatedException with the specified error message preceded by "INTERNAL ERROR: ".

public
AssertionViolatedException(String message, final Throwable initCause)

Constructs a new AssertionViolationException with the specified error message and initial 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 AssertionViolatedException.
getMessage
()

Overrides java.lang.Throwable.getMessage.

Returns the error message string of this AssertionViolatedException object.
public static void
main(final String[] args)

DO NOT USE.

Field Detail

detailMessageback to summary
private String detailMessage

Hides java.lang.Throwable.detailMessage.

The error message.

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.RuntimeException.serialVersionUID.

Constructor Detail

AssertionViolatedExceptionback to summary
public AssertionViolatedException()

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

AssertionViolatedExceptionback to summary
public AssertionViolatedException(String message)

Constructs a new AssertionViolatedException with the specified error message preceded by "INTERNAL ERROR: ".

AssertionViolatedExceptionback to summary
public AssertionViolatedException(String message, final Throwable initCause)

Constructs a new AssertionViolationException with the specified error message and initial cause

Since
6.0

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 AssertionViolatedException object.

Returns:String

the error message string of this AssertionViolatedException.

Annotations
@Override
mainback to summary
public static void main(final String[] args)

DO NOT USE. It's for experimental testing during development only.