1 21 22 package nu.xom; 23 24 37 public class UnavailableCharacterException extends XMLException { 38 39 private char unavailableCharacter; 40 private String encoding; 41 42 43 51 public UnavailableCharacterException(char character, String encoding) { 52 53 super("Cannot use the character " + character + " (&#x" 54 + Integer.toHexString(character).toUpperCase() + ";) in the " 55 + encoding + " encoding."); 56 this.unavailableCharacter = character; 57 this.encoding = encoding; 58 59 } 60 61 62 70 public char getCharacter() { 71 return this.unavailableCharacter; 72 } 73 74 75 83 public String getEncoding() { 84 return this.encoding; 85 } 86 87 88 } | Popular Tags |