home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgLangD.iso / VCAFE.3.0A / Sample.bin / ParseLogException.java < prev    next >
Text File  |  1998-11-05  |  954b  |  29 lines

  1. // Copyright (c) 1997, 1998 Symantec, Inc. All Rights Reserved.
  2.  
  3. /*
  4. This exception indicates a problem was encountered while parsing the log file.
  5. It has both the standard exception constructor with a single message parameter
  6. and a constructor that is used when the occurance of another exception indicates
  7. a parsing error. In that case the original exception is wrapped by this one so
  8. it is available if needed.
  9. */
  10. public class ParseLogException extends Exception {
  11.     // The causing exception, if any
  12.     public Throwable x;
  13.     
  14.     // Constructs a ParseLogException with the given message.
  15.     public ParseLogException(String msg) {
  16.         super(msg);
  17.             //{{INIT_CONTROLS
  18.         //}}
  19. }
  20.     
  21.     // Constructs a ParseLogException with the given message that wraps a
  22.     // causing exception
  23.     public ParseLogException(String msg, Throwable x) {
  24.         super(msg);
  25.         this.x = x;
  26.     }
  27.     //{{DECLARE_CONTROLS
  28.     //}}
  29. }