unmarshall errors to exceptions