Database.Database.CreateExceptionMessage C# (CSharp) Method

CreateExceptionMessage() private method

private CreateExceptionMessage ( Exception ex ) : string
ex Exception
return string
        private string CreateExceptionMessage(Exception ex)
        {
            string err = string.Empty;

            err = @"An error occured while executing a query.
Exception Message: {0}
Stack Trace:
{1}";
            err = string.Format(err, ex.Message, ex.StackTrace);

            return err;
        }
    }