1 24 25 package com.sslexplorer.agent.client.util; 26 27 import java.text.MessageFormat ; 28 29 30 39 public class XMLParseException 40 extends RuntimeException 41 { 42 43 46 public static final int NO_LINE = -1; 47 48 49 57 private int lineNr; 58 59 60 74 public XMLParseException(String name, 75 String message) 76 { 77 super(MessageFormat.format(Messages.getString("XMLParseException.xmlParseException"), new Object [] { name == null ? "DEF" : name, message } )); this.lineNr = XMLParseException.NO_LINE; 80 } 81 82 83 99 public XMLParseException(String name, 100 int lineNr, 101 String message) 102 { 103 super(MessageFormat.format(Messages.getString("XMLParseException.xmlParseExceptionLineNumber"), new Object [] { name == null ? "DEF" : name, new Integer (lineNr), message } )); this.lineNr = lineNr; 106 } 107 108 109 116 public int getLineNr() 117 { 118 return this.lineNr; 119 } 120 121 } 122 | Popular Tags |