raise if a decoder was expected