TasksWritingException Class

Represents the standard internal writing exception type.
Inheritance Hierarchy
SystemObject
  SystemException
    SystemApplicationException
      Aspose.TasksTasksLoggedException
        Aspose.TasksTasksWritingException

Namespace:  Aspose.Tasks
Assembly:  Aspose.Tasks (in Aspose.Tasks.dll) Version: 21.10
Syntax
[SerializableAttribute]
public class TasksWritingException : TasksLoggedException

The TasksWritingException type exposes the following members.

Constructors
  NameDescription
Protected methodCode exampleTasksWritingException
Initializes a new instance of the TasksWritingException class.
Properties
  NameDescription
Public propertyData (Inherited from Exception.)
Public propertyHelpLink (Inherited from Exception.)
Protected propertyHResult (Inherited from Exception.)
Public propertyInnerException (Inherited from Exception.)
Public propertyCode exampleLogText
Gets the exception logging information.
(Inherited from TasksLoggedException.)
Public propertyMessage (Inherited from Exception.)
Public propertyCode exampleOperation
Gets the exception operation information.
(Inherited from TasksLoggedException.)
Public propertySource (Inherited from Exception.)
Public propertyStackTrace (Inherited from Exception.)
Public propertyTargetSite (Inherited from Exception.)
Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetBaseException (Inherited from Exception.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetObjectData (Inherited from Exception.)
Public methodGetType (Inherited from Exception.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Exception.)
Examples
Shows how to read log text and type of exception to check problems with MPP export.
try
{
    var project = new Project(DataDir + "PrintTaskWritingException.mpp");

    // export the project as an MPP file
    project.Save(OutDir + "PrintTaskWritingException_out.MPP", SaveFileFormat.MPP);
}
catch (TasksWritingException ex)
{
    Console.WriteLine("Exception Operation: " + ex.Operation);
    Console.WriteLine("Exception Log Text: ");
    Console.WriteLine(ex.LogText);
}
See Also