public final class

ErrorMatchers

extends Object
java.lang.Object
   ↳ com.atlassian.jira.matchers.ErrorMatchers

Class Overview

Matchers for Java errors.

Summary

Public Methods
static <T extends Throwable> Matcher<Throwable> specificError(Class<T> errorClass, Matcher<T> specificMatcher)
static Matcher<Throwable> withCause(Matcher<? extends Throwable> causeMatcher)
static Matcher<Throwable> withCause(Class<? extends Throwable> causeType)
static Matcher<InitializationError> withCauses(Matcher<Iterable<Throwable>> causesMatcher)
static Matcher<Throwable> withMessage(String... expectedSubstrings)
static Matcher<Throwable> withMessage(Matcher<String> messageMatcher)
static <T, U> Matcher<T> withTransformed(Matcher<U> valueMatcher, Function<T, U> transformer)
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static Matcher<Throwable> specificError (Class<T> errorClass, Matcher<T> specificMatcher)

public static Matcher<Throwable> withCause (Matcher<? extends Throwable> causeMatcher)

public static Matcher<Throwable> withCause (Class<? extends Throwable> causeType)

public static Matcher<InitializationError> withCauses (Matcher<Iterable<Throwable>> causesMatcher)

public static Matcher<Throwable> withMessage (String... expectedSubstrings)

public static Matcher<Throwable> withMessage (Matcher<String> messageMatcher)

public static Matcher<T> withTransformed (Matcher<U> valueMatcher, Function<T, U> transformer)