]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/package/assembler/class_PackageAssembler.php
Some comments improved, minor changes
[hub.git] / application / hub / main / package / assembler / class_PackageAssembler.php
index 9e952487b41fe2a604610781294130a023dc1eb5..04195d0c56c6ec2142efd76020e0fff63bb8b917 100644 (file)
@@ -36,7 +36,7 @@ class PackageAssembler extends BaseFrameworkSystem implements Assembler, Registe
        /**
         * Creates an instance of this class
         *
-        * @return      $assemblerInstance              An instance of a Fragmentable class
+        * @return      $assemblerInstance      An instance of an Assembler class
         */
        public static final function createPackageAssembler () {
                // Get new instance
@@ -73,7 +73,7 @@ class PackageAssembler extends BaseFrameworkSystem implements Assembler, Registe
                // Abort if the call-back method is not there
                if (!method_exists($this, $methodName)) {
                        // Throw an exception
-                       throw new UnsupportedPackageCodeHandlerException(array($this, $packageContent, $methodName), BaseListener::EXCEPTION_UNSUPPORTED_PACKAGE_CODE_HANDLER);
+                       throw new UnsupportedPackageCodeHandlerException(array($this, $methodName, $packageContent), BaseListener::EXCEPTION_UNSUPPORTED_PACKAGE_CODE_HANDLER);
                } // END - if
 
                // Call it back
@@ -81,7 +81,10 @@ class PackageAssembler extends BaseFrameworkSystem implements Assembler, Registe
        }
 
        /**
-        * Call-back handler to handle unhandled packages
+        * Call-back handler to handle unhandled packages. This method "explodes"
+        * the string with the chunk separator from PackageFragmenter class, does
+        * some low checks on it and feeds it into another queue for verification
+        * and re-request for bad chunks.
         *
         * @param       $packageContent         An array with two elements: 'decoded_data' and 'error_code'
         * @return      void