ContainerRuntimeException Class
Thrown when the container runtime fails an operation: its command line exits with a non-zero exit code, or the Docker Engine API refuses a request or reports a failure. Every runtime reports its failures with this exception.
public sealed class ContainerRuntimeException : Exception- Inheritance
ExceptionContainerRuntimeException
Constructors
| Name | Description |
|---|---|
| ContainerRuntimeException() | Initializes a new instance of ContainerRuntimeException. |
| ContainerRuntimeException(string) | Initializes a new instance of ContainerRuntimeException with the specified message. |
| ContainerRuntimeException(string, Exception) | Initializes a new instance of ContainerRuntimeException with the specified message and inner exception. |
ContainerRuntimeException overloads
ContainerRuntimeException()
ContainerRuntimeException.csInitializes a new instance of ContainerRuntimeException.
public ContainerRuntimeException()ContainerRuntimeException(string)
ContainerRuntimeException.csInitializes a new instance of ContainerRuntimeException with the specified message.
public ContainerRuntimeException(string message)Parameters
messagestring
ContainerRuntimeException(string, Exception)
ContainerRuntimeException.csInitializes a new instance of ContainerRuntimeException with the specified message and inner exception.
Properties
| Name | Description |
|---|---|
| Command | Gets the command line that failed, or null when the operation did not run a command line. Environment variable values are redacted. |
| ExitCode | Gets the exit code of the command, or 0 when the operation did not run a command line. |
| Runtime | Gets the runtime whose operation failed. |
| StandardError | Gets the text the command wrote to the standard error. |
| StandardOutput | Gets the text the command wrote to the standard output. |
| StatusCode | Gets the status of the Docker Engine API response that refused the request, or null when the failure was not reported by a response status: a command line that failed, or an operation the daemon reported as failed in the body of a successful response. |
Command
ContainerRuntimeException.csExitCode
ContainerRuntimeException.csRuntime
ContainerRuntimeException.csStandardError
ContainerRuntimeException.csStandardOutput
ContainerRuntimeException.csStatusCode
ContainerRuntimeException.csGets the status of the Docker Engine API response that refused the request, or null when the failure was not reported by a response status: a command line that failed, or an operation the daemon reported as failed in the body of a successful response.
public HttpStatusCode? StatusCode { get; }