Ejemplo n.º 1
0
        private string FindException(OctopusDOAUpdateExceptionEnum exceptionId)
        {
            string returned = String.Empty;
            switch(exceptionId)
            {
                case OctopusDOAUpdateExceptionEnum.NewNameIsNull:
                    returned = "DOAExceptionNewNameIsNull.Text";
                    break;

                case OctopusDOAUpdateExceptionEnum.NoSelect:
                    returned = "DOAExceptionNoSelect.Text";
                    break;
            }
            return returned;
        }
Ejemplo n.º 2
0
 public OctopusDOAUpdateException(OctopusDOAUpdateExceptionEnum exceptionCode)
 {
     code = FindException(exceptionCode);
 }