AEntity toString() error handling