Return-Path: Delivered-To: apmail-jakarta-avalon-cvs-archive@apache.org Received: (qmail 30614 invoked from network); 18 Jun 2002 18:44:28 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 18 Jun 2002 18:44:28 -0000 Received: (qmail 9133 invoked by uid 97); 18 Jun 2002 18:44:37 -0000 Delivered-To: qmlist-jakarta-archive-avalon-cvs@jakarta.apache.org Received: (qmail 9093 invoked by uid 97); 18 Jun 2002 18:44:36 -0000 Mailing-List: contact avalon-cvs-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Avalon CVS List" Reply-To: "Avalon Developers List" Delivered-To: mailing list avalon-cvs@jakarta.apache.org Received: (qmail 9081 invoked by uid 98); 18 Jun 2002 18:44:35 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Date: 18 Jun 2002 18:44:24 -0000 Message-ID: <20020618184424.35982.qmail@icarus.apache.org> From: bloritsch@apache.org To: jakarta-avalon-cvs@apache.org Subject: cvs commit: jakarta-avalon/src/java/org/apache/avalon/framework/service ServiceException.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N bloritsch 2002/06/18 11:44:24 Modified: src/java/org/apache/avalon/framework/service ServiceException.java Log: fix ServiceException to allow for role name Revision Changes Path 1.3 +35 -1 jakarta-avalon/src/java/org/apache/avalon/framework/service/ServiceException.java Index: ServiceException.java =================================================================== RCS file: /home/cvs/jakarta-avalon/src/java/org/apache/avalon/framework/service/ServiceException.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- ServiceException.java 14 Jun 2002 01:55:52 -0000 1.2 +++ ServiceException.java 18 Jun 2002 18:44:23 -0000 1.3 @@ -22,24 +22,58 @@ public class ServiceException extends CascadingException { + final private String m_role; + /** * Construct a new ComponentException instance. * + * @deprecated use the String,String,Throwable version instead * @param message the exception message * @param throwable the throwable */ public ServiceException( final String message, final Throwable throwable ) { + this( null, message, throwable ); + } + + /** + * Construct a new ComponentException instance. + * + * @param message the exception message + * @param throwable the throwable + */ + public ServiceException( final String role, final String message, final Throwable throwable ) + { super( message, throwable ); + m_role = role; } /** * Construct a new ComponentException instance. * + * @deprecated use the String,String version instead * @param message the exception message */ public ServiceException( final String message ) { - super( message, null ); + this( null, message, null ); + } + + /** + * Construct a new ComponentException instance. + * + * @param message the exception message + */ + public ServiceException( final String role, final String message ) + { + this( role, message, null ); + } + + /** + * Return the role that caused the exception + */ + public String getRole() + { + return m_role; } } -- To unsubscribe, e-mail: For additional commands, e-mail: