Automattic\WooCommerce\Vendor\GraphQL\Error
FormattedError::setInternalErrorMessage
Set default error message for internal errors formatted using createFormattedError(). This value can be overridden by passing 3rd argument to createFormattedError().
Method of the class: FormattedError{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = FormattedError::setInternalErrorMessage( $msg ): void;
- $msg(string) (required)
- .
FormattedError::setInternalErrorMessage() FormattedError::setInternalErrorMessage code WC 10.9.1
public static function setInternalErrorMessage(string $msg): void
{
self::$internalErrorMessage = $msg;
}