KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > portletregistery > PortletRegisteryException


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
6 package org.exoplatform.services.portletregistery;
7
8 import org.exoplatform.services.exception.ExoServiceException;
9
10 /**
11  * Created y the eXo platform team
12  * User: Benjamin Mestrallet
13  * Date: 16 juin 2004
14  */

15 public class PortletRegisteryException extends ExoServiceException {
16
17   final static public int UNKNOWN_ERROR = 0 ;
18   final static public int PORTLET_CATEGORY_NOT_FOUND = 1 ;
19   final static public int PORTLET_NOT_FOUND = 2 ;
20   final static public int PORTLET_ROLE_NOT_FOUND = 3 ;
21   
22   private int errorCode_ ;
23
24   public PortletRegisteryException(String JavaDoc s, int errorCode) {
25     super(s) ;
26     errorCode_ = errorCode ;
27   }
28
29   public int getErrorCode() { return errorCode_ ; }
30
31 }
32
Popular Tags