GC_Error::__construct()
最后更新于:2021-11-27 14:45:13
GC_Error::__construct( string|int$code=”, string$message=”, mixed$data=”)Initializes the error.
参数
- $code
-
(string|int) (Optional) Error code.
Default value: ”
- $message
-
(string) (Optional) Error message.
Default value: ”
- $data
-
(mixed) (Optional) Error data.
Default value: ”
源文件
文件: gc-includes/class-gc-error.php
public function __construct( $code = '', $message = '', $data = '' ) {
if ( empty( $code ) ) {
return;
}
$this->add( $code, $message, $data );
}