Esempio n. 1
0
        public NisreDbException(SqlException exception, SqlParam parameters)
        {
            ExceptionData.Add("procedure", exception.Procedure);
            ExceptionData.Add("parameters", parameters.GetParamatersInfo().ToJson());
            ExceptionData.Add("server", exception.Server);
            ExceptionData.Add("source", exception.Source);
            ExceptionData.Add("message", exception.Message);

            this.CustomException = exception.Number > 50000;
            if (CustomException)
            {
                this.Message = exception.Message;
            }
            else
            {
                Message = "System Error";
            }
        }