SystemException Class


Serves as the base class for system exceptions namespace.

public class SystemException : Exception


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.


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.



Initializes a new instance of the SystemException class.


Initializes a new instance of the SystemException class with a specified error message.

SystemException(SerializationInfo, StreamingContext)

Initializes a new instance of the SystemException class with serialized data.

SystemException(String, Exception)

Initializes a new instance of the SystemException class with a specified error message and a reference to the inner exception that is the cause of this exception.


Data Inherited from Exception
GetBaseException() Inherited from Exception
GetObjectData(SerializationInfo, StreamingContext) Inherited from Exception
GetType() Inherited from Exception
HelpLink Inherited from Exception
HResult Inherited from Exception
InnerException Inherited from Exception
Message Inherited from Exception
SerializeObjectState Inherited from Exception
Source Inherited from Exception
StackTrace Inherited from Exception
TargetSite Inherited from Exception
ToString() Inherited from Exception
Equals(Object) Inherited from Object
Equals(Object, Object) Inherited from Object
GetHashCode() Inherited from Object
MemberwiseClone() Inherited from Object
ReferenceEquals(Object, Object) Inherited from Object

Applies to

See Also