Better ErrorHandling for Quantizer