CheckoutException Class

Definition

The exception that is thrown when an attempt to check out a file that is checked into a source code management program is canceled or fails.

public class CheckoutException : System.Runtime.InteropServices.ExternalException
Inheritance

Inherited Members

System.Exception

System.Object

System.Runtime.InteropServices.ExternalException

Examples

The following code example demonstrates throwing a CheckoutException.

// Throws a checkout exception with a message and error code.
throw gcnew CheckoutException( "This is an example exception", 0 );
// Throws a checkout exception with a message and error code.
throw new CheckoutException("This is an example exception", 0);
' Throws a checkout exception with a message and error code.
Throw New CheckoutException("This is an example exception", 0)

Constructors

CheckoutException()

Initializes a new instance of the CheckoutException class with no associated message or error code.

CheckoutException(String)

Initializes a new instance of the CheckoutException class with the specified message.

CheckoutException(SerializationInfo, StreamingContext)

Initializes a new instance of the CheckoutException class using the specified serialization data and context.

CheckoutException(String, Exception)

Initializes a new instance of the CheckoutException class with the specified detailed description and the specified exception.

CheckoutException(String, Int32)

Initializes a new instance of the CheckoutException class with the specified message and error code.

Fields

Canceled

Initializes a new instance of the CheckoutException class that specifies that the check out was canceled. This field is read-only.