More complete Error, and use from_raw/to_raw