Lines Matching refs:error_data
348 $error_data = array( 'expected' => 1, 'given' => $arg_count );
349 return $this->raise_error( 'wrong_number_of_arguments', $error_data );
357 …$error_data = array( 'expected' => implode( '/', $this->calc_functions[ $function_name ] ), 'given…
358 return $this->raise_error( 'wrong_number_of_arguments', $error_data );
363 …$error_data = array( 'expected' => count( $this->functions[ $function_name ]['args'] ), 'given' =>…
364 return $this->raise_error( 'wrong_number_of_arguments', $error_data );
443 $error_data = array( 'expected' => $counts, 'given' => 0 );
444 return $this->raise_error( 'wrong_number_of_arguments', $error_data );
648 * @param array|string $error_data Optional. Additional error data.
651 protected function raise_error( $message, $error_data = null ) { argument
652 $this->last_error = $this->get_error_string( $message, $error_data );
665 * @param array|string $error_data Optional. Additional error data.
668 protected function get_error_string( $identifier, $error_data = null ) { argument
688 if ( null !== $error_data ) {
689 if ( is_array( $error_data ) ) {
692 foreach ( $error_data as $key => $value ) {
715 $string = str_replace( '{$error_data}', (string) $error_data, $string );