ArcGIS Pro 2.7 API Reference Guide
OpenTaskException Class
Members 

ArcGIS.Desktop.TaskAssistant Namespace : OpenTaskException Class
Represents an error exception when opening an ArcGIS Pro .esriTasks file.
Syntax
Remarks
The OpenTaskException is thrown from the TaskAssistantModule.OpenTaskAsync, TaskAssistantModule.OpenTaskAsync, TaskAssistantModule.OpenTaskItemAsync, TaskAssistantModule.OpenTaskItemAsync, or TaskAssistantModule.GetTaskItemInfoAsync methods. Use the Message property to determine the error in opening the task file.
Inheritance Hierarchy

System.Object
   System.Exception
      ArcGIS.Desktop.TaskAssistant.TaskException
         ArcGIS.Desktop.TaskAssistant.OpenTaskException

Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

OpenTaskException Members
ArcGIS.Desktop.TaskAssistant Namespace
OpenTaskAsync(String) Method
OpenTaskAsync(String,Guid) Method
OpenTaskItemAsync(Guid) Method
OpenTaskItemAsync(Guid,Guid) Method
GetTaskItemInfoAsync Method