deserializer for exceptions