home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / xampp / xampp-cocoon-addon-1.4.9-installer.exe / ApplicationException.class (.txt) < prev    next >
Encoding:
Java Class File  |  2004-07-12  |  605 b   |  18 lines

  1. package org.apache.cocoon.samples.errorhandling;
  2.  
  3. public class ApplicationException extends Exception {
  4.    private int errorCode;
  5.  
  6.    public ApplicationException(int errorCode) {
  7.       this.errorCode = errorCode;
  8.    }
  9.  
  10.    public void setErrorCode(int errorCode) {
  11.       this.errorCode = errorCode;
  12.    }
  13.  
  14.    public int getErrorCode() {
  15.       return this.errorCode;
  16.    }
  17. }
  18.