Exemplo n.º 1
0
 internal bool IsCriticalException(Type exceptionType)
 {
     if (typeof(Exception).IsAssignableFrom(exceptionType))
     {
         return(CriticalExceptionTypes.Contains(exceptionType));
     }
     else
     {
         throw new ArgumentException($"{exceptionType} is not exception!");
     }
 }
Exemplo n.º 2
0
 internal bool IsCriticalException(Exception exception)
 {
     return(CriticalExceptionTypes.Contains(exception?.GetType()));
 }