throw exception after setting error message
handle all pixelComponents