1 16 package org.apache.cocoon.samples.errorhandling; 17 18 22 public class ApplicationException extends Exception { 23 private int errorCode; 24 25 public ApplicationException(int errorCode, String message) { 26 super(message); 27 this.errorCode = errorCode; 28 } 29 30 public ApplicationException(int errorCode) { 31 this.errorCode = errorCode; 32 } 33 34 public void setErrorCode(int errorCode) { 35 this.errorCode = errorCode; 36 } 37 38 public int getErrorCode() { 39 return this.errorCode; 40 } 41 } 42 | Popular Tags |