[Beeframework-svn] SF.net SVN: beeframework:[256] trunk/framework/Bee/Context
Brought to you by:
b_hartmann,
m_plomer
|
From: <m_p...@us...> - 2014-10-14 20:48:43
|
Revision: 256
http://sourceforge.net/p/beeframework/code/256
Author: m_plomer
Date: 2014-10-14 20:48:38 +0000 (Tue, 14 Oct 2014)
Log Message:
-----------
- added constructor parameter for exception cause
Modified Paths:
--------------
trunk/framework/Bee/Context/BeanNotOfRequiredTypeException.php
trunk/framework/Bee/Context/NoSuchBeanDefinitionException.php
Modified: trunk/framework/Bee/Context/BeanNotOfRequiredTypeException.php
===================================================================
--- trunk/framework/Bee/Context/BeanNotOfRequiredTypeException.php 2014-10-09 11:59:29 UTC (rev 255)
+++ trunk/framework/Bee/Context/BeanNotOfRequiredTypeException.php 2014-10-14 20:48:38 UTC (rev 256)
@@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+use Exception;
/**
* Enter description here...
@@ -47,10 +48,11 @@
* @param String $name
* @param String $requiredType
* @param String $actualType
+ * @param Exception $prev
* @return BeanNotOfRequiredTypeException
*/
- public function __construct($name, $requiredType, $actualType=null) {
- parent::__construct(sprintf(self::EXCEPTION_MESSAGE, $name, $actualType, $requiredType));
+ public function __construct($name, $requiredType, $actualType=null, Exception $prev = null) {
+ parent::__construct(sprintf(self::EXCEPTION_MESSAGE, $name, $actualType, $requiredType), 0, $prev);
$this->name = $name;
$this->requiredType = $requiredType;
$this->actualType = $actualType;
Modified: trunk/framework/Bee/Context/NoSuchBeanDefinitionException.php
===================================================================
--- trunk/framework/Bee/Context/NoSuchBeanDefinitionException.php 2014-10-09 11:59:29 UTC (rev 255)
+++ trunk/framework/Bee/Context/NoSuchBeanDefinitionException.php 2014-10-14 20:48:38 UTC (rev 256)
@@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+use Exception;
/**
* Enter description here...
@@ -36,10 +37,11 @@
* @param String $name
* @param String $type
* @param null $message
+ * @param Exception $prev
* @return NoSuchBeanDefinitionException
*/
- public function __construct($name, $type=null, $message = null) {
- parent::__construct(is_null($message) ? sprintf(self::EXCEPTION_MESSAGE, $name, $type) : $message);
+ public function __construct($name, $type=null, $message = null, Exception $prev = null) {
+ parent::__construct(is_null($message) ? sprintf(self::EXCEPTION_MESSAGE, $name, $type) : $message, 0, $prev);
$this->name = $name;
$this->type = $type;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|