1 17 package org.apache.bcel.verifier.exc; 18 19 20 31 public abstract class VerifierConstraintViolatedException extends RuntimeException { 32 35 36 private String detailMessage; 37 40 VerifierConstraintViolatedException(){ 41 super(); 42 } 43 46 VerifierConstraintViolatedException(String message){ 47 super(message); detailMessage = message; 49 } 50 51 52 57 public void extendMessage(String pre, String post){ 58 if (pre == null) { 59 pre=""; 60 } 61 if (detailMessage == null) { 62 detailMessage=""; 63 } 64 if (post == null) { 65 post=""; 66 } 67 detailMessage = pre+detailMessage+post; 68 } 69 73 public String getMessage(){ 74 return detailMessage; 75 } 76 } 77 | Popular Tags |