Writing exception documents details in exception.details