1 18 package org.apache.batik.apps.rasterizer; 19 20 26 public class SVGConverterException extends Exception { 27 30 protected String errorCode; 31 32 35 protected Object [] errorInfo; 36 37 40 protected boolean isFatal; 41 42 public SVGConverterException(String errorCode){ 43 this(errorCode, null, false); 44 } 45 46 public SVGConverterException(String errorCode, 47 Object [] errorInfo){ 48 this(errorCode, errorInfo, false); 49 } 50 51 public SVGConverterException(String errorCode, 52 Object [] errorInfo, 53 boolean isFatal){ 54 this.errorCode = errorCode; 55 this.errorInfo = errorInfo; 56 this.isFatal = isFatal; 57 } 58 59 public SVGConverterException(String errorCode, 60 boolean isFatal){ 61 this(errorCode, null, isFatal); 62 } 63 64 public boolean isFatal(){ 65 return isFatal; 66 } 67 68 public String getMessage(){ 69 return Messages.formatMessage(errorCode, errorInfo); 70 } 71 72 public String getErrorCode(){ 73 return errorCode; 74 } 75 } 76 | Popular Tags |