KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > communication > forum > ForumServiceException


1 /***************************************************************************
2  * Copyright 2001-2003 The eXo Platform SARL All rights reserved. *
3  * Please look at license.txt in info directory for more license detail. *
4  **************************************************************************/

5 package org.exoplatform.services.communication.forum;
6
7 /*
8  * @author: Tuan Nguyen
9  * @version: $Id: ForumServiceException.java,v 1.1.1.1 2004/03/05 21:56:56 benjmestrallet Exp $
10  * @since: 0.0
11  * @email: tuan08@yahoo.com
12  */

13 public class ForumServiceException extends Exception JavaDoc {
14   final static public int UNKNOWN_ERROR = 0 ;
15   final static public int CATEGORY_NOT_FOUND = 1 ;
16   final static public int FORUM_NOT_FOUND = 2 ;
17   final static public int TOPIC_NOT_FOUND = 3 ;
18   final static public int POST_NOT_FOUND = 4 ;
19   
20   private int errorCode_ ;
21
22   public ForumServiceException(String JavaDoc s, int errorCode) {
23     super(s) ;
24     errorCode_ = errorCode ;
25   }
26   public int getErrorCode() { return errorCode_ ; }
27 }
28
Popular Tags