Overview

Namespaces

  • TokenReflection
    • Broker
      • Backend
    • Dummy
    • Exception
    • Invalid
    • Php
    • Stream

Exceptions

  • BaseException
  • BrokerException
  • FileProcessingException
  • ParseException
  • RuntimeException
  • StreamException
  • Overview
  • Namespace
  • Class
  • Tree
  • Download
 1: <?php
 2: /**
 3:  * PHP Token Reflection
 4:  *
 5:  * Version 1.3.1
 6:  *
 7:  * LICENSE
 8:  *
 9:  * This source file is subject to the new BSD license that is bundled
10:  * with this library in the file LICENSE.
11:  *
12:  * @author Ondřej Nešpor
13:  * @author Jaroslav Hanslík
14:  */
15: 
16: namespace TokenReflection\Exception;
17: 
18: use TokenReflection\Broker;
19: 
20: /**
21:  * Exception raised when working with the Broker.
22:  */
23: class BrokerException extends BaseException
24: {
25:     /**
26:      * Processed file name.
27:      *
28:      * @var \TokenReflection\Broker
29:      */
30:     private $broker;
31: 
32:     /**
33:      * Constructor.
34:      *
35:      * @param \TokenReflection\Broker $broker Processed file name
36:      * @param string $message Exception message
37:      * @param integer $code Exception code
38:      * @param \TokenReflection\Exception\StreamException $parent Parent exception
39:      */
40:     public function __construct(Broker $broker, $message, $code, StreamException $parent = null)
41:     {
42:         parent::__construct($message, $code, $parent);
43: 
44:         $this->broker = $broker;
45:     }
46: 
47:     /**
48:      * Returns the current Broker.
49:      *
50:      * @return \TokenReflection\Broker
51:      */
52:     public function getBroker()
53:     {
54:         return $this->broker;
55:     }
56: 
57:     /**
58:      * Returns an exception description detail.
59:      *
60:      * @return string
61:      */
62:     public function getDetail()
63:     {
64:         return '';
65:     }
66: }
67: 
PHP Token Reflection API documentation generated by ApiGen 2.8.0