01: /*
02: * Copyright (c) 2001 - 2005 ivata limited.
03: * All rights reserved.
04: * -----------------------------------------------------------------------------
05: * ivata groupware may be redistributed under the GNU General Public
06: * License as published by the Free Software Foundation;
07: * version 2 of the License.
08: *
09: * These programs are free software; you can redistribute them and/or
10: * modify them under the terms of the GNU General Public License
11: * as published by the Free Software Foundation; version 2 of the License.
12: *
13: * These programs are distributed in the hope that they will be useful,
14: * but WITHOUT ANY WARRANTY; without even the implied warranty of
15: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16: *
17: * See the GNU General Public License in the file LICENSE.txt for more
18: * details.
19: *
20: * If you would like a copy of the GNU General Public License write to
21: *
22: * Free Software Foundation, Inc.
23: * 59 Temple Place - Suite 330
24: * Boston, MA 02111-1307, USA.
25: *
26: *
27: * To arrange commercial support and licensing, contact ivata at
28: * http://www.ivata.com/contact.jsp
29: * -----------------------------------------------------------------------------
30: * $Log: NotificationException.java,v $
31: * Revision 1.2 2005/04/09 17:19:44 colinmacleod
32: * Changed copyright text to GPL v2 explicitly.
33: *
34: * Revision 1.1.1.1 2005/03/10 17:51:55 colinmacleod
35: * Restructured ivata op around Hibernate/PicoContainer.
36: * Renamed ivata groupware.
37: *
38: * -----------------------------------------------------------------------------
39: */
40: package com.ivata.groupware.business.library;
41:
42: import java.util.List;
43:
44: import com.ivata.mask.util.SystemException;
45:
46: /**
47: * An instance of this class is thrown whenever the notification for a library
48: * item cannot be sent out.
49: *
50: * @since ivata groupware 0.10 (2005-01-11)
51: * @author Colin MacLeod
52: * <a href="mailto:colin.macleod@ivata.com">colin.macleod@ivata.com</a>
53: * @version $Revision: 1.2 $
54: */
55: public class NotificationException extends SystemException {
56: private List recipientEmailAddresses;
57: private String senderEmailAddress;
58:
59: /**
60: * @param messageParam clear text message l
61: */
62: public NotificationException(final Throwable causeParam,
63: final String senderEmailAddressParam,
64: final List recipientEmailAddressesParam) {
65: super (causeParam);
66: this .recipientEmailAddresses = recipientEmailAddressesParam;
67: this .senderEmailAddress = senderEmailAddressParam;
68: }
69:
70: /**
71: * @return Returns the recipientEmailAddresses.
72: */
73: public List getRecipientEmailAddresses() {
74: return recipientEmailAddresses;
75: }
76:
77: /**
78: * @return Returns the senderEmailAddress.
79: */
80: public String getSenderEmailAddress() {
81: return senderEmailAddress;
82: }
83: }
|