pub fn decode_error<T>(desc: &'static str) -> Result<T>
Convenience function to create a decode error.