ContainerExecException Class
Thrown by ExecResult.EnsureSuccess when a command executed inside a container exits with a non-zero exit code.
public sealed class ContainerExecException : Exception- Inheritance
ExceptionContainerExecException
Constructors
| Name | Description |
|---|---|
| ContainerExecException() | Initializes a new instance of ContainerExecException. |
| ContainerExecException(string) | Initializes a new instance of ContainerExecException with the specified message. |
| ContainerExecException(string, Exception) | Initializes a new instance of ContainerExecException with the specified message and inner exception. |
ContainerExecException overloads
ContainerExecException()
ContainerExecException.csInitializes a new instance of ContainerExecException.
public ContainerExecException()ContainerExecException(string)
ContainerExecException.csInitializes a new instance of ContainerExecException with the specified message.
public ContainerExecException(string message)Parameters
messagestring- The message.
ContainerExecException(string, Exception)
ContainerExecException.csInitializes a new instance of ContainerExecException with the specified message and inner exception.
Properties
| Name | Description |
|---|---|
| Command | Gets the command and its arguments. |
| ExitCode | Gets the exit code of the command. |
| StandardError | Gets the text the command wrote to the standard error. |
| StandardOutput | Gets the text the command wrote to the standard output. |