CriticalInternalErrorException Class
The exception that is thrown by methods of the SelfCheck class to signal an unrecoverable condition, most probably caused by an internal error in a library or application, that should cause an application to terminate immediately.
public class CriticalInternalErrorException : InternalErrorException, ICriticalError- Inheritance
InternalErrorExceptionCriticalInternalErrorException- Implements
Constructors
| Name | Description |
|---|---|
| CriticalInternalErrorException() | Initializes a new instance of the CriticalInternalErrorException class. |
| CriticalInternalErrorException(SerializationInfo, StreamingContext) | Initializes a new instance of the CriticalInternalErrorException class with serialized data. |
| CriticalInternalErrorException(string) | Initializes a new instance of the CriticalInternalErrorException class with a specified error message. |
| CriticalInternalErrorException(string, Exception?) | Initializes a new instance of the CriticalInternalErrorException class with a specified error message and a reference to the inner exception that is the cause of this exception. |
CriticalInternalErrorException overloads
CriticalInternalErrorException()
Initializes a new instance of the CriticalInternalErrorException class.
public CriticalInternalErrorException()CriticalInternalErrorException(SerializationInfo, StreamingContext)
- Obsolete: This API supports obsolete formatter-based serialization. It should not be called or extended by application code.
Initializes a new instance of the CriticalInternalErrorException class with serialized data.
net10.0, net11.0
[Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId = "SYSLIB0051", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
protected CriticalInternalErrorException(SerializationInfo info, StreamingContext context)net48, netstandard2.0
protected CriticalInternalErrorException(SerializationInfo info, StreamingContext context)Parameters
infoSerializationInfo- The
SerializationInfothat holds the serialized object data about the exception being thrown. contextStreamingContext- The
StreamingContextthat contains contextual information about the source or destination.
CriticalInternalErrorException(string)
Initializes a new instance of the CriticalInternalErrorException class with a specified error message.
public CriticalInternalErrorException(string message)Parameters
messagestring- The message that describes the error.
CriticalInternalErrorException(string, Exception?)
Initializes a new instance of the CriticalInternalErrorException class with a specified error message and a reference to the inner exception that is the cause of this exception.
Parameters
messagestring- The error message that explains the reason for the exception.
innerExceptionException?- The exception that is the cause of the current exception, or a
nullreference (Nothingin Visual Basic) if no inner exception is specified.