Error exponents for quantum channels with constrained inputs