SystemException Class (System) (original) (raw)
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Serves as the base class for system exceptions namespace.
public ref class SystemException : Exception
public class SystemException : Exception
[System.Serializable]
public class SystemException : Exception
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public class SystemException : Exception
type SystemException = class
inherit Exception
[<System.Serializable>]
type SystemException = class
inherit Exception
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type SystemException = class
inherit Exception
Public Class SystemException
Inherits Exception
Inheritance
Derived
Attributes
Remarks
This class is provided as a means to differentiate between system exceptions and application exceptions. It is the base class of such exceptions as ArgumentException, FormatException, and InvalidOperationException.
Important
Because SystemException serves as the base class of a variety of exception types, your code should not throw a SystemException exception, nor should it attempt to handle a SystemException exception unless you intend to re-throw the original exception.
SystemException uses the HRESULT COR_E_SYSTEM, that has the value 0x80131501.