code: public Predicate<Exception> raise(Class<? extends Exception> exception) {
      return create(error -> error != null && exception.isAssignableFrom(error.getClass()));
    }
docs: Indicates that the operation should throw the given exception.