]> git.mxchange.org Git - hub.git/blobdiff - application/hub/exceptions/package/class_FinalChunkVerificationException.php
Added exceptions + some code:
[hub.git] / application / hub / exceptions / package / class_FinalChunkVerificationException.php
index 1bc7d6c312604a51c037c697a0405001118ebf7c..d889fe3fdeb7ba4e32c1575797a719424879d06a 100644 (file)
@@ -5,7 +5,7 @@
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2011 Hub Developer Team
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2012 Hub Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.ship-simu.org
  *
@@ -32,12 +32,13 @@ class FinalChunkVerificationException extends FrameworkException {
         */
        public function __construct (array $messageArray, $code) {
                // Construct the message
-               $message = sprintf("[%s:%d] The final chunk %s is not a valid EOP (%s) chunk. Total chunks: %s",
+               $message = sprintf('[%s:%d] The final chunk %s is not a valid EOP (%s) chunk. Total chunks: %s, cause: %s',
                        $messageArray[0]->__toString(),
                        $this->getLine(),
                        $messageArray[1][count($messageArray[1]) - 1],
                        PackageFragmenter::END_OF_PACKAGE_IDENTIFIER,
-                       count($messageArray[1])
+                       count($messageArray[1]),
+                       $messageArray[2]->__toString()
                );
 
                // Call parent exception constructor