edu.umd.cs.findbugs.ba

Class InvalidBytecodeException

  • All Implemented Interfaces:
    Serializable


    public class InvalidBytecodeException
    extends RuntimeException
    An exception that may be thrown by frame modeling visitor classes to indicate that the method being analyzed contains invalid bytecode. For example, this can be thrown to indicate that a method invocation requires more stack operands than are available. AbstractFrameModelingVisitor will catch this exception and rethrow it as a checked DataflowAnalysisException.
    Author:
    David Hovemeyer
    See Also:
    Serialized Form
    • Constructor Detail

      • InvalidBytecodeException

        public InvalidBytecodeException(String msg)
        Constructor.
        Parameters:
        msg - reason for the exception
      • InvalidBytecodeException

        public InvalidBytecodeException(String msg,
                                Throwable cause)
        Constructor.
        Parameters:
        msg - reason for the exception
        cause - another exception that is the cause of this exception
      • InvalidBytecodeException

        public InvalidBytecodeException(String message,
                                org.apache.bcel.generic.MethodGen methodGen,
                                org.apache.bcel.generic.InstructionHandle handle)
        Constructor from method and instruction.
        Parameters:
        message - reason for the error
        methodGen - the method
        handle - the instruction
      • InvalidBytecodeException

        public InvalidBytecodeException(String message,
                                org.apache.bcel.generic.MethodGen methodGen,
                                org.apache.bcel.generic.InstructionHandle handle,
                                Throwable cause)
        Constructor from method and instruction.
        Parameters:
        message - reason for the error
        methodGen - the method
        handle - the instruction
        cause - another exception that is the cause of this exception

Copyright © 2003–2015. All rights reserved.