Added common exception for codecs to raise