private function handleException($e, $params) {
		
		// logger
		$this->logParamQuery($this->query, 0, $params);
		
		switch ($e->getCode()) {
		
			// calls with wrong params type or count
			case 'HY093':
				if (is_array($params)) {
					$message = 'Parameters count is ' . count($params) . ', an array with different number is expected by function call';
				} else {
					$message = 'Parameters are expected in array format by function call, type ' . gettype($params) . ' was passed';
				}
				break;
		
			default:
				$message = $e->getMessage();
				break;
		
		}
		
		$this->addError($message);
		
	}
private function handleException($e, $params) {
		
		// logger
		$this->logParamQuery($this->query, 0, $params);
		
		switch ($e->getCode()) {
		
			// calls with wrong params type or count
			case 'HY093':
				if (is_array($params)) {
					$message = 'Parameters count is ' . count($params) . ', an array with different number is expected by function call';
				} else {
					$message = 'Parameters are expected in array format by function call, type ' . gettype($params) . ' was passed';
				}
				break;
		
			default:
				$message = $e->getMessage();
				break;
		
		}
		
		$this->addError($message);
		
	}
private function handleException ( $ e , $ params ) { // logger
 $ this -> logParamQuery ( $ this -> query , 0 , $ params ) ; switch ( $ e -> getCode ( ) ) { // calls with wrong params type or count
 case 'HY093' : if ( is_array ( $ params ) ) { $ message = 'Parameters count is ' . count ( $ params ) . ', an array with different number is expected by function call' ; } else { $ message = 'Parameters are expected in array format by function call, type ' . gettype ( $ params ) . ' was passed' ; } break ; default : $ message = $ e -> getMessage ( ) ; break ; } $ this -> addError ( $ message ) ; }
Log query, switch error and add to DB class error list.

@param	stdClass	Error object.
@param	array		Parameters.
Log query switch error and add to DB class error list .