KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > icl > saxon > om > NamespaceException


1 package com.icl.saxon.om;
2
3 /**
4  * A NamespaceException represents an error condition whereby a QName (e.g. a variable
5  * name or template name) uses a namespace prefix that is not declared
6  */

7  
8 public class NamespaceException extends Exception JavaDoc {
9
10     String JavaDoc prefix;
11     
12     public NamespaceException (String JavaDoc prefix) {
13        this.prefix = prefix;
14     }
15
16     public String JavaDoc getMessage() {
17         return "Namespace prefix " + prefix + " has not been declared";
18     }
19
20 }
21
22
Popular Tags