KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sape > carbon > services > carbonmanagement > CarbonManagementServiceException


1 package org.sape.carbon.services.carbonmanagement;
2
3 import org.sape.carbon.core.exception.BaseException;
4 import org.sape.carbon.core.util.classify.SeverityEnum;
5
6 /**
7  * Abstract base class for all exceptions thrown within the
8  * CarbonManagementService
9  *
10  * <br>Copyright 2002 Sapient
11  * @since carbon 1.2
12  * @author Douglas Voet, Dec 19, 2002
13  * @version $Revision: 1.6 $($Author: jreed $ / $Date: 2003/04/15 18:53:53 $)
14  */

15 public abstract class CarbonManagementServiceException extends BaseException {
16
17     /**
18      * Constructor for CarbonManagementServiceException.
19      *
20      * @param sourceClass The source class of this exception
21      * @param message string information relating to this exception
22      */

23     public CarbonManagementServiceException(Class JavaDoc sourceClass, String JavaDoc message) {
24         super(sourceClass, message);
25     }
26
27     /**
28      * Constructor for CarbonManagementServiceException.
29      *
30      * @param sourceClass The source class of this exception
31      * @param message string information relating to this exception
32      * @param cause a throwable that can be considered the cause
33      * of the current exception (used in levelizing exceptions)
34      */

35     public CarbonManagementServiceException(
36         Class JavaDoc sourceClass,
37         String JavaDoc message,
38         Throwable JavaDoc cause) {
39         super(sourceClass, message, cause);
40     }
41
42     /**
43      * @return SeverityEnum.DETAIL
44      */

45     public SeverityEnum getSeverity() {
46         return SeverityEnum.DEBUG;
47     }
48
49 }
50
Popular Tags