Ejemplo n.º 1
0
        public OCGException PopFirstError()
        {
            OCGException retVal = exceptionList.First(e => e.Level == ExceptionLevel.Error);

            exceptionList.Remove(retVal);

            return(retVal);
        }
Ejemplo n.º 2
0
        public OCGException PopFirstInformation()
        {
            OCGException retVal = exceptionList.First(e => e.Level == ExceptionLevel.Information);

            exceptionList.Remove(retVal);

            return(retVal);
        }
Ejemplo n.º 3
0
        public OCGException PopFirstWarning()
        {
            OCGException retVal = exceptionList.First(e => e.Level == ExceptionLevel.Warning);

            exceptionList.Remove(retVal);

            return(retVal);
        }
Ejemplo n.º 4
0
 public void AddException(OCGException ex)
 {
     exceptionList.Insert(0, ex);
 }