Parameterize stream classes by what Throwable they may throw.