Shouldn't be OutOfMemoryException a fatal exception?

Topics: Core
May 5, 2012 at 11:25 AM

There is Orchard.InvokeExtensions. This class checks whether an exception is fatal or not by comparing its type to a list of exceptions, but OutOfMemoryException is not among them. Shouldn't be OutOfMemoryException considered fatal too?

BTW such an IsFatal() method is handy, couldn't it be made

  • public
  • or included in some other utility class

for general usage?

May 5, 2012 at 6:49 PM

Please file a bug.

May 5, 2012 at 6:57 PM

OK, I've done it.