Ejemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="pException"></param>
        /// <param name="pExeptionsEnums"></param>
        public DataBaseExeption(Exception pException, ExeptionsEnums pExeptionsEnums)
        {
            if (pExeptionsEnums == ExeptionsEnums.CryptographicFile)
            {
                if (pException.GetType() == typeof(System.IO.FileNotFoundException))
                {
                    _Msg = "No es posible encontrar el archivo CnnCrypt.key " + Environment.NewLine + pException.Message;
                }

                if (pException.GetType() == typeof(System.Security.Cryptography.CryptographicException))
                {
                    _Msg = "La password encriptada en el archivo de configuracion fue violada. "
                           + Environment.NewLine + "Reescriba su clave y guarde su configuracion";
                }
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="pException"></param>
        /// <param name="pExeptionsEnums"></param>
        public DataBaseExeption(Exception pException, ExeptionsEnums pExeptionsEnums)
        {
            if (pExeptionsEnums == ExeptionsEnums.CryptographicFile)
            {
                if (pException.GetType() ==  typeof(System.IO.FileNotFoundException))
                {

                    _Msg = "No es posible encontrar el archivo CnnCrypt.key " + Environment.NewLine + pException.Message;
                }

                if (pException.GetType() == typeof(System.Security.Cryptography.CryptographicException))
                {

                    _Msg = "La password encriptada en el archivo de configuracion fue violada. "
                        + Environment.NewLine + "Reescriba su clave y guarde su configuracion";
                }
            }
        }