/**
* 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
// 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
}
/**
- * 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