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
ExceptionInternalErrorException
Constructors
| Name | Description |
|---|---|
| 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
infoSerializationInfo- The
SerializationInfothat holds the serialized object data about the exception being thrown. contextStreamingContext- The
StreamingContextthat 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
messagestring- 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.
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.