1 18 package org.apache.batik.test; 19 20 28 public class TestException extends Exception { 29 32 protected String errorCode; 33 34 37 protected Object [] errorParams; 38 39 42 protected Exception sourceError; 43 44 public TestException(String errorCode, 45 Object [] errorParams, 46 Exception e){ 47 this.errorCode = errorCode; 48 this.errorParams = errorParams; 49 this.sourceError = e; 50 } 51 52 public String getErrorCode(){ 53 return errorCode; 54 } 55 56 public Object [] getErrorParams(){ 57 return errorParams; 58 } 59 60 public Exception getSourceError(){ 61 return sourceError; 62 } 63 64 public String getMessage(){ 65 return Messages.formatMessage(errorCode, 66 errorParams); 67 } 68 } 69 | Popular Tags |