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: namespace Jyxo\Mail\Sender;
15:
16: /**
17: * Exception used when some recipients' addresses do not exist.
18: *
19: * @category Jyxo
20: * @package Jyxo\Mail
21: * @subpackage Sender
22: * @copyright Copyright (c) 2005-2011 Jyxo, s.r.o.
23: * @license https://github.com/jyxo/php/blob/master/license.txt
24: * @author Jaroslav HanslĂk
25: */
26: class RecipientUnknownException extends \Jyxo\Mail\Sender\Exception
27: {
28: /**
29: * List of non-existent addresses.
30: *
31: * @var array
32: */
33: private $list = array();
34:
35: /**
36: * Creates an exception.
37: *
38: * @param string $message Exception message
39: * @param integer $code Exception code
40: * @param array $list List of non-existent addresses
41: */
42: public function __construct($message = null, $code = 0, array $list = array())
43: {
44: parent::__construct($message, $code);
45: $this->list = $list;
46: }
47:
48: /**
49: * Returns the list of non-existent addresses.
50: *
51: * @return array
52: */
53: public function getList()
54: {
55: return $this->list;
56: }
57: }
58: