KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > thaiopensource > validate > schematron > DraconianErrorListener


1 package com.thaiopensource.validate.schematron;
2
3 import javax.xml.transform.ErrorListener JavaDoc;
4 import javax.xml.transform.TransformerException JavaDoc;
5
6 class DraconianErrorListener implements ErrorListener JavaDoc {
7   DraconianErrorListener() {
8   }
9
10   public void warning(TransformerException JavaDoc exception)
11           throws TransformerException JavaDoc {
12   }
13
14   public void error(TransformerException JavaDoc exception)
15           throws TransformerException JavaDoc {
16     throw exception;
17   }
18
19   public void fatalError(TransformerException JavaDoc exception)
20           throws TransformerException JavaDoc {
21     throw exception;
22   }
23 }
24
Popular Tags