mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Polish
See gh-25980
This commit is contained in:
parent
5e03612a53
commit
4987880afa
@ -209,13 +209,13 @@ class WebFluxTagsTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
void outcomeTagIsClientErrorWhenExceptionIsDisconnectedClient() {
|
||||
void outcomeTagIsUnknownWhenExceptionIsDisconnectedClient() {
|
||||
Tag tag = WebFluxTags.outcome(this.exchange, new EOFException("broken pipe"));
|
||||
assertThat(tag.getValue()).isEqualTo("UNKNOWN");
|
||||
}
|
||||
|
||||
@Test
|
||||
void outcomeTagIsClientErrorWhenExceptionIsCancelledExchange() {
|
||||
void outcomeTagIsUnknownWhenExceptionIsCancelledExchange() {
|
||||
Tag tag = WebFluxTags.outcome(this.exchange, new CancelledServerWebExchangeException());
|
||||
assertThat(tag.getValue()).isEqualTo("UNKNOWN");
|
||||
}
|
||||
|
@ -29,7 +29,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
*
|
||||
* @author Brian Clozel
|
||||
*/
|
||||
public class NettyAutoConfigurationTests {
|
||||
class NettyAutoConfigurationTests {
|
||||
|
||||
private final ApplicationContextRunner contextRunner = new ApplicationContextRunner()
|
||||
.withConfiguration(AutoConfigurations.of(NettyAutoConfiguration.class));
|
||||
|
@ -2206,7 +2206,7 @@ To add to the default tags, provide one or more ``@Bean``s that implement `WebMv
|
||||
To replace the default tags, provide a `@Bean` that implements `WebMvcTagsProvider`.
|
||||
|
||||
TIP: In some cases, exceptions handled in Web controllers are not recorded as request metrics tags.
|
||||
Applications can opt-in and record exceptions by <<spring-boot-features.adoc#boot-features-error-handling, setting handled exceptions as request parameters>>.
|
||||
Applications can opt-in and record exceptions by <<spring-boot-features.adoc#boot-features-error-handling, setting handled exceptions as request attributes>>.
|
||||
|
||||
|
||||
|
||||
@ -2245,7 +2245,7 @@ To add to the default tags, provide one or more ``@Bean``s that implement `WebFl
|
||||
To replace the default tags, provide a `@Bean` that implements `WebFluxTagsProvider`.
|
||||
|
||||
TIP: In some cases, exceptions handled in controllers and handler functions are not recorded as request metrics tags.
|
||||
Applications can opt-in and record exceptions by <<spring-boot-features.adoc#boot-features-webflux-error-handling, setting handled exceptions as request parameters>>.
|
||||
Applications can opt-in and record exceptions by <<spring-boot-features.adoc#boot-features-webflux-error-handling, setting handled exceptions as request attributes>>.
|
||||
|
||||
|
||||
|
||||
|
@ -35,7 +35,7 @@ import org.springframework.web.server.ServerWebExchange;
|
||||
public interface ErrorAttributes {
|
||||
|
||||
/**
|
||||
* Name of the {@link ServerRequest#attribute(String)} Request attribute} holding the
|
||||
* Name of the {@link ServerRequest#attribute(String) request attribute} holding the
|
||||
* error resolved by the {@code ErrorAttributes} implementation.
|
||||
* @since 2.5.0
|
||||
*/
|
||||
|
@ -36,7 +36,7 @@ public interface ErrorAttributes {
|
||||
|
||||
/**
|
||||
* Name of the {@link javax.servlet.http.HttpServletRequest#getAttribute(String)
|
||||
* Request attribute} holding the error resolved by the {@code ErrorAttributes}
|
||||
* request attribute} holding the error resolved by the {@code ErrorAttributes}
|
||||
* implementation.
|
||||
* @since 2.5.0
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user