Class ExitCodeException
[Serializable]
public sealed class ExitCodeException : IOException, ISerializable, _Exception
- Inheritance
-
objectExitCodeException
- Implements
- Inherited Members
- Extension Methods
Constructors
ExitCodeException()
Initializes a new instance of the IOException class with its message string set to the empty string (""), its HRESULT set to COR_E_IO, and its inner exception set to a null reference.
public ExitCodeException()
ExitCodeException(Process)
Creates a new exit code exception.
public ExitCodeException(Process process)
Parameters
processProcessThe process that has exited.
ExitCodeException(string)
Initializes a new instance of the IOException class with its message string set to message, its HRESULT set to COR_E_IO, and its inner exception set to null.
public ExitCodeException(string message)
Parameters
messagestringA string that describes the error. The content of
messageis intended to be understood by humans. The caller of this constructor is required to ensure that this string has been localized for the current system culture.
ExitCodeException(string, Exception)
Initializes a new instance of the IOException class with a specified error message and a reference to the inner exception that is the cause of this exception.
public ExitCodeException(string message, Exception innerException)
Parameters
messagestringThe error message that explains the reason for the exception.
innerExceptionExceptionThe exception that is the cause of the current exception. If the
innerExceptionparameter is not null, the current exception is raised in a catch block that handles the inner exception.
ExitCodeException(string, int)
Creates a new exit code exception.
public ExitCodeException(string message, int exitCode)
Parameters
Properties
ExitCode
The ExitCode.
public int ExitCode { get; }
Property Value
Methods
GetObjectData(SerializationInfo, StreamingContext)
When overridden in a derived class, sets the SerializationInfo with information about the exception.
[SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)]
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
infoSerializationInfoThe SerializationInfo that holds the serialized object data about the exception being thrown.
contextStreamingContextThe StreamingContext that contains contextual information about the source or destination.
Exceptions
- ArgumentNullException
The
infoparameter is a null reference (Nothing in Visual Basic).