芝麻web文件管理V1.00
编辑当前文件:/home/r5772835/public_html/dina.ycreate.jp/wp-content/plugins/font-awesome/includes/error-util.php
add_data( $additional_diagnostics ); return $e; } /** * Internal use only, not part of this plugin's public API. * * @internal * @ignore */ // phpcs:ignore Squiz.Commenting.FunctionCommentThrowTag.Missing function build_wp_error( $e, $code ) { if ( is_a( $e, 'Error' ) || is_a( $e, 'Exception' ) ) { $previous = boolval( $e->getPrevious() ) ? build_wp_error( $e->getPrevious(), 'previous_exception' ) : null; $current = new WP_Error( $code, $e->getMessage(), array( 'trace' => $e->getTraceAsString(), ) ); if ( ! is_null( $previous ) ) { $current->add( $previous->get_error_code(), $previous->get_error_message(), $previous->get_error_data() ); } if ( method_exists( $e, 'get_wp_error' ) ) { $wpe = $e->get_wp_error(); if ( $wpe ) { $current->add( $wpe->get_error_code(), $wpe->get_error_message(), $wpe->get_error_data() ); } } return $current; } else { try { $as_string = ( ( is_object( $e ) && method_exists( $e, '__toString' ) ) || is_string( $e ) || is_numeric( $e ) ) ? strval( $e ) : null; $message = 'Unexpected Thing, neither Error or Exception'; if ( is_null( $as_string ) ) { $message .= ', which cannot be stringified.'; } else { $message .= ", stringified: $as_string"; } throw new Exception( $message ); } catch ( Exception $e ) { return new WP_Error( $code, $e->getMessage(), array( 'trace' => $e->getTraceAsString(), ) ); } } } /** * Internal use only, not part of this plugin's public API. * * @internal * @ignore */ function wpe_fontawesome_unknown_error( $e ) { return build_wp_error( $e, 'fontawesome_unknown_error' ); } /** * Internal use only, not part of this plugin's public API. * * @internal * @ignore */ function wpe_fontawesome_client_exception( $e ) { return build_wp_error( $e, 'fontawesome_client_exception' ); } /** * Internal use only, not part of this plugin's public API. * * @internal * @ignore */ function wpe_fontawesome_server_exception( $e ) { return build_wp_error( $e, 'fontawesome_server_exception' ); }