1 19 package edu.umd.cs.findbugs.ba; 20 21 import org.apache.bcel.generic.InstructionHandle; 22 import org.apache.bcel.generic.MethodGen; 23 24 34 public class InvalidBytecodeException extends RuntimeException { 35 private static final long serialVersionUID = 1L; 36 37 42 public InvalidBytecodeException(String msg) { 43 super(msg); 44 } 45 46 52 public InvalidBytecodeException(String msg, Throwable cause) { 53 super(msg, cause); 54 } 55 56 63 public InvalidBytecodeException(String message, MethodGen methodGen, InstructionHandle handle) { 64 super(message + " in " + SignatureConverter.convertMethodSignature(methodGen) + " at " + handle); 65 } 66 67 75 public InvalidBytecodeException( 76 String message, 77 MethodGen methodGen, 78 InstructionHandle handle, 79 Throwable cause) { 80 super(message + " in " + SignatureConverter.convertMethodSignature(methodGen) + " at " + handle, 81 cause); 82 } 83 } 84 | Popular Tags |