KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > webservice > server > ServiceException


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.webservice.server;
8
9 // $Id: ServiceException.java,v 1.2.4.1 2005/03/02 14:32:33 tdiesler Exp $
10

11 import org.jboss.axis.AxisFault;
12 import org.jboss.logging.Logger;
13
14 /**
15  * A simple exception wrapper that does logging
16  *
17  * @author Thomas.Diesler@jboss.org
18  * @since 15-April-2004
19  */

20 public class ServiceException extends AxisFault
21 {
22    // provide logging
23
private static final Logger log = Logger.getLogger(ServiceException.class);
24
25    public ServiceException(String JavaDoc message)
26    {
27       super(message);
28       log.error(message);
29    }
30
31    public ServiceException(String JavaDoc message, Throwable JavaDoc t)
32    {
33       super(message, t);
34       log.error(message, t);
35    }
36
37    public ServiceException(Exception JavaDoc target)
38    {
39       super(target);
40       log.error(target);
41    }
42 }
43
Popular Tags