home *** CD-ROM | disk | FTP | other *** search
/ Internet Magazine 2003 October / INTERNET108.ISO / pc / software / windows / building / xmlspy / xmlspyentcomplete5.exe / Data1.cab / _562016AB9D28470382E607D3FDB6AB39 < prev    next >
Encoding:
Text File  |  2003-04-03  |  814 b   |  39 lines

  1. /**
  2.  * XmlException.java
  3.  *
  4.  * This file was generated by XMLSPY 5 Enterprise Edition.
  5.  *
  6.  * YOU SHOULD NOT MODIFY THIS FILE, BECAUSE IT WILL BE
  7.  * OVERWRITTEN WHEN YOU RE-RUN CODE GENERATION.
  8.  *
  9.  * Refer to the XMLSPY Documentation for further details.
  10.  * http://www.altova.com/xmlspy
  11.  */
  12.  
  13.  
  14. package com.altova.xml;
  15.  
  16.  
  17. public class XmlException extends RuntimeException {
  18.     protected java.lang.Exception    innerException;
  19.     protected String                message;
  20.  
  21.     public XmlException(String text) {
  22.         innerException = null;
  23.         message = text;
  24.     }
  25.  
  26.     public XmlException(java.lang.Exception other) {
  27.         innerException = other;
  28.         message = other.getMessage();
  29.     }
  30.  
  31.     public String getMessage() {
  32.         return message;
  33.     }
  34.  
  35.     public java.lang.Exception getInnerException() {
  36.         return innerException;
  37.     }
  38. }
  39.