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
InternalErrorException CriticalInternalErrorException
Implements

Constructors

NameDescription
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
info SerializationInfo
The SerializationInfo that holds the serialized object data about the exception being thrown.
context StreamingContext
The StreamingContext that 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
message string
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.

public CriticalInternalErrorException(string message, Exception? innerException)
Parameters
message string
The error message that explains the reason for the exception.
innerException Exception?
The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.