1: <?php
2:
3: /**
4: * Jyxo PHP Library
5: *
6: * LICENSE
7: *
8: * This source file is subject to the new BSD license that is bundled
9: * with this package in the file license.txt.
10: * It is also available through the world-wide-web at this URL:
11: * https://github.com/jyxo/php/blob/master/license.txt
12: */
13:
14: /**
15: * Exception used when some recipients' addresses do not exist.
16: *
17: * @category Jyxo
18: * @package Jyxo_Mail
19: * @subpackage Sender
20: * @copyright Copyright (c) 2005-2011 Jyxo, s.r.o.
21: * @license https://github.com/jyxo/php/blob/master/license.txt
22: * @author Jaroslav HanslĂk
23: */
24: class Jyxo_Mail_Sender_RecipientUnknownException extends Jyxo_Mail_Sender_Exception
25: {
26: /**
27: * List of non-existent addresses.
28: *
29: * @var array
30: */
31: private $list = array();
32:
33: /**
34: * Creates an exception.
35: *
36: * @param string $message Exception message
37: * @param integer $code Exception code
38: * @param array $list List of non-existent addresses
39: */
40: public function __construct($message = null, $code = 0, array $list = array())
41: {
42: parent::__construct($message, $code);
43: $this->list = $list;
44: }
45:
46: /**
47: * Returns the list of non-existent addresses.
48: *
49: * @return array
50: */
51: public function getList()
52: {
53: return $this->list;
54: }
55: }
56: