| Modifier and Type | Field and Description |
|---|---|
| private final @NotNull String | |
| private final @NotNull Pattern | |
| private final @NotNull String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | describeTo(Description
The description to be built or appended to. description)Implements org. Generates a description of the object. |
| public static @NotNull ExceptionMatcher | |
| public boolean | matches(Object
the object against which the matcher is evaluated. o)Implements org. Evaluates the matcher for argument item. |
| public static @NotNull ExceptionMatcher | |
| public static @NotNull ExceptionMatcher |
| message | back to summary |
|---|---|
| private final @NotNull String message
| |
| pattern | back to summary |
|---|---|
| private final @NotNull Pattern pattern
| |
| prefix | back to summary |
|---|---|
| private final @NotNull String prefix
| |
| ExceptionMatcher | back to summary |
|---|---|
| public ExceptionMatcher(@NotNull Class<? extends Throwable> throwable, @NotNull Pattern pattern, @NotNull String message) | |
| describeTo | back to summary |
|---|---|
| public void describeTo(Description description) Implements org. Doc from org. Generates a description of the object. The description may be part of a a description of a larger object of which this is just a component, so it should be worded appropriately.
| |
| match | back to summary |
|---|---|
public static @NotNull ExceptionMatcher match(@NotNull Class<? extends Throwable> throwable, @NotNull String text)
| |
| matches | back to summary |
|---|---|
| public boolean matches(Object o) Implements org. Doc from org. Evaluates the matcher for argument item. This method matches against Object, instead of the generic type T. This is because the caller of the Matcher does not know at runtime what the type is (because of type erasure with Java generics). It is down to the implementations to check the correct type. | |
| matchPrefix | back to summary |
|---|---|
public static @NotNull ExceptionMatcher matchPrefix(@NotNull Class<? extends Throwable> throwable, @NotNull String text)
| |
| matchRegEx | back to summary |
|---|---|
public static @NotNull ExceptionMatcher matchRegEx(@NotNull Class<? extends Throwable> throwable, @NotNull String regEx)
| |