AzureDevOpsException Class

Summary

Represents errors that occur during connecting to Azure DevOps.
graph BT Type-->Base0["Exception"] Type["AzureDevOpsException"] class Type type-node Derived0["AzureDevOpsBranchNotFoundException"]-->Type click Derived0 "/api/Cake.AzureDevOps.Repos.PullRequest/AzureDevOpsBranchNotFoundException" Derived1["AzureDevOpsBuildNotFoundException"]-->Type click Derived1 "/api/Cake.AzureDevOps.Pipelines/AzureDevOpsBuildNotFoundException" Derived2["AzureDevOpsWorkItemException"]-->Type click Derived2 "/api/Cake.AzureDevOps.Boards.WorkItemTracking/AzureDevOpsWorkItemException" Derived3["AzureDevOpsPullRequestNotFoundException"]-->Type click Derived3 "/api/Cake.AzureDevOps.Repos.PullRequest/AzureDevOpsPullRequestNotFoundException"

Syntax

public class AzureDevOpsException : Exception

Constructors

Name Summary
AzureDevOpsException() Initializes a new instance of the AzureDevOpsException class.
AzureDevOpsException(string, Exception) Initializes a new instance of the AzureDevOpsException class with a specified error message and a reference to the inner exception that is the cause of this exception.
AzureDevOpsException(string) Initializes a new instance of the AzureDevOpsException class with a specified error message.

Extension Methods

Name Value Summary
Dump<AzureDevOpsException>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<AzureDevOpsException>(AzureDevOpsException[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<AzureDevOpsException>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<AzureDevOpsException>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
ThrowIfNull<AzureDevOpsException>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<AzureDevOpsException>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin