Shouldn't be OutOfMemoryException a fatal exception?

Topics: Core
Developer
May 5, 2012 at 12:25 PM

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?

Coordinator
May 5, 2012 at 7:49 PM

Please file a bug.

Developer
May 5, 2012 at 7:57 PM

OK, I've done it.