KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > commons > exception > ExoException


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.commons.exception;
6
7 import java.util.ResourceBundle JavaDoc;
8
9 /**
10  * @author: Tuan Nguyen
11  * @version: $Id: ExoException.java,v 1.5 2004/11/03 01:24:55 tuan08 Exp $
12  * @since: 0.0
13  * @email: tuan08@yahoo.com
14  */

15 abstract public class ExoException extends Exception JavaDoc {
16   static final public int FATAL = 0 ;
17   static final public int ERROR = 1 ;
18   static final public int WARN = 2 ;
19   static final public int INFO = 3 ;
20   
21   private int severity_ = INFO ;
22   
23   public int getSeverity() { return severity_ ;}
24   public void setSeverity(int severity) { severity_ = severity ; }
25   
26   abstract public String JavaDoc getMessage(ResourceBundle JavaDoc res) ;
27   abstract public String JavaDoc getExceptionDescription() ;
28   abstract public String JavaDoc getErrorCode() ;
29 }
Popular Tags