Error::__construct( string $error_code, string $error_message, string $method, string $version = '1.0.0', array $data = array() )

Constructor.

Description

See also

Parameters

$error_code

(string) (Required) Error code.

$error_message

(string) (Required) Error message.

$method

(string) (Required) Name of the method or function the error occurred in.

$version

(string) (Optional) Version the error message was added.

Default value: '1.0.0'

$data

(array) (Optional) Further error data.

Default value: array()

Source

File: src/error.php

	public function __construct( $error_code, $error_message, $method, $version = '1.0.0', $data = array() ) {
		parent::__construct( $error_code, $error_message, array_merge( array(
			'method'  => $method,
			'version' => $version,
		), $data ) );
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.