InternalErrorException Class

The exception that is thrown by methods of the SelfCheck class to signal a condition most probably caused by an internal error in a library or application.

Do not use this class directly; use the methods of the SelfCheck class instead.

public class InternalErrorException : Exception
Inheritance
Exception InternalErrorException

Constructors

NameDescription
InternalErrorException()Initializes a new instance of the InternalErrorException class.
InternalErrorException(SerializationInfo, StreamingContext)Initializes a new instance of the InternalErrorException class with serialized data.
InternalErrorException(string)Initializes a new instance of the InternalErrorException class with a specified error message.
InternalErrorException(string, Exception?)Initializes a new instance of the InternalErrorException class with a specified error message and a reference to the inner exception that is the cause of this exception.

InternalErrorException overloads

InternalErrorException()

Initializes a new instance of the InternalErrorException class.

public InternalErrorException()

InternalErrorException(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 InternalErrorException 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 InternalErrorException(SerializationInfo info, StreamingContext context)

net48, netstandard2.0

protected InternalErrorException(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.

InternalErrorException(string)

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

public InternalErrorException(string message)
Parameters
message string
The message that describes the error.

InternalErrorException(string, Exception?)

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

public InternalErrorException(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.