protected override void WriteExceptionError(Exception exception)
{
// Override the default error message into a formatted message which contains Request Id
CloudException cloudException = exception as CloudException;
if (cloudException != null)
{
exception = cloudException.CreateFormattedException();
}
base.WriteExceptionError(exception);
}