KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > exception > ExoServiceException


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.exception;
6
7 /**
8  * @author: Tuan Nguyen
9  * @version: $Id: ExoServiceException.java,v 1.2 2004/06/29 00:08:49 tuan08 Exp $
10  * @since: 0.0
11  * @email: tuan08@yahoo.com
12  */

13 public class ExoServiceException extends Exception JavaDoc {
14   protected Object JavaDoc[] params_ ;
15   protected String JavaDoc key_ = "SystemException" ;
16   protected String JavaDoc keyDesc_ = "SystemExceptionDesc" ;
17
18   public ExoServiceException() {
19   }
20
21   public ExoServiceException(Throwable JavaDoc ex) {
22     super(ex.getMessage()) ;
23     ex.printStackTrace() ;
24   }
25
26   public ExoServiceException(String JavaDoc s) {
27     super(s) ;
28   }
29
30   public ExoServiceException(String JavaDoc key, Object JavaDoc[] params) {
31     key_ = key ;
32     keyDesc_ = key + "Desc";
33     params_ = params ;
34   }
35 }
36
Popular Tags