public function debug()
	{
	    $errorToreturn = '';
		if($this->_debug && $this->hasError() ){
			$message = $this->getMessage();
			$trace = $this->getTrace();
			$critical = $this->getCritical();

			for($i= 0, $count = sizeOf($message); $i<$count;$i++ ) {

				if($critical[$i]){
                    echo '<strong style="color:red">';
				} else  {
					continue;
				}

				CheckoutApi_Utility_Utilities::dump($message[$i] .'==> { ');
				
				foreach($trace[$i] as $errorIndex => $errors) {
                    echo   "<pre>";
                    echo    $errorIndex ."=>  "; print_r($errors);

                    echo   "</pre>";
				}
				
				if($critical[$i])	{
                    echo   '</strong>';
				}
				
				CheckoutApi_Utility_Utilities::dump('} ');
				
			}
			
		}
		return $errorToreturn;
	}
public function debug()
	{
	    $errorToreturn = '';
		if($this->_debug && $this->hasError() ){
			$message = $this->getMessage();
			$trace = $this->getTrace();
			$critical = $this->getCritical();

			for($i= 0, $count = sizeOf($message); $i<$count;$i++ ) {

				if($critical[$i]){
                    echo '<strong style="color:red">';
				} else  {
					continue;
				}

				CheckoutApi_Utility_Utilities::dump($message[$i] .'==> { ');
				
				foreach($trace[$i] as $errorIndex => $errors) {
                    echo   "<pre>";
                    echo    $errorIndex ."=>  "; print_r($errors);

                    echo   "</pre>";
				}
				
				if($critical[$i])	{
                    echo   '</strong>';
				}
				
				CheckoutApi_Utility_Utilities::dump('} ');
				
			}
			
		}
		return $errorToreturn;
	}
public function debug ( ) { $ errorToreturn = '' ; if ( $ this -> _debug && $ this -> hasError ( ) ) { $ message = $ this -> getMessage ( ) ; $ trace = $ this -> getTrace ( ) ; $ critical = $ this -> getCritical ( ) ; for ( $ i = 0 , $ count = sizeOf ( $ message ) ; $ i < $ count ; $ i ++ ) { if ( $ critical [ $ i ] ) { echo '<strong style="color:red">' ; } else { continue ; } CheckoutApi_Utility_Utilities :: dump ( $ message [ $ i ] . '==> { ' ) ; foreach ( $ trace [ $ i ] as $ errorIndex => $ errors ) { echo "<pre>" ; echo $ errorIndex . "=>  " ; print_r ( $ errors ) ; echo "</pre>" ; } if ( $ critical [ $ i ] ) { echo '</strong>' ; } CheckoutApi_Utility_Utilities :: dump ( '} ' ) ; } } return $ errorToreturn ; }
CheckoutApi_ print out the error
@return string $errorToreturn a list of errors
CheckoutApi_ print out the error