Automattic\WooCommerce\Internal\Admin\Settings
SettingsUIRequestContext::record_script_handles_failure
Cache and report a script handle failure.
Method of the class: SettingsUIRequestContext{}
No Hooks.
Returns
null. Nothing (null).
Usage
// private - for code of main (parent) class only $result = $this->record_script_handles_failure( $e, $caller ): void;
- $e(Throwable) (required)
- Resolution failure.
- $caller(string) (required)
- Calling method, for exception tracking.
SettingsUIRequestContext::record_script_handles_failure() SettingsUIRequestContext::record script handles failure code WC 11.3.0
private function record_script_handles_failure( \Throwable $e, string $caller ): void {
$this->script_handles_failed = true;
self::log_resolution_failure( 'Settings UI script handles', $this->settings_page->get_id(), $this->section, $e, $caller );
$this->script_handles_failure_reason = sprintf(
/* translators: %s: failure reason. */
__( 'Settings UI script handles could not be resolved: %s', 'woocommerce' ),
self::sanitize_failure_reason( $e )
);
}