@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:35.963Z") @Stability(value=Stable) public interface MatchFailure extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.assertions.*;
Matcher matcher;
MatchFailure matchFailure = MatchFailure.builder()
.matcher(matcher)
.message("message")
.path(List.of("path"))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
MatchFailure.Builder
A builder for
MatchFailure |
static class |
MatchFailure.Jsii$Proxy
An implementation for
MatchFailure |
| Modifier and Type | Method and Description |
|---|---|
static MatchFailure.Builder |
builder() |
Matcher |
getMatcher()
The matcher that had the failure.
|
String |
getMessage()
Failure message.
|
List<String> |
getPath()
The relative path in the target where the failure occurred.
|
@Stability(value=Stable) @NotNull Matcher getMatcher()
@Stability(value=Stable) @NotNull String getMessage()
@Stability(value=Stable) @NotNull List<String> getPath()
If the failure occurred at root of the match tree, set the path to an empty list.
If it occurs in the 5th index of an array nested within the 'foo' key of an object,
set the path as ['/foo', '[5]'].
@Stability(value=Stable) static MatchFailure.Builder builder()
MatchFailure.Builder of MatchFailureCopyright © 2022. All rights reserved.