ArcFM Desktop Developer Guide
PostException Property
Example 


Version: 10.2.1b and 10.2.1b SP1

Resource Center Home

Gets or sets the Post Exception.
Syntax
'Declaration
 
Public Property PostException As Exception
'Usage
 
Dim instance As ActionData
Dim value As Exception
 
instance.PostException = value
 
value = instance.PostException
public Exception PostException {get; set;}
Remarks
This value will be null if the version has not yet been posted or if no Exceptions were thrown during the post process.
Example
This sample shows a use of the PostException property in conjuction with HasPostError. within the implementation of the SubExecute method of an ActionHandler.
protected override bool SubExecute(ActionData actionData, GdbmParameter[] parameters)
{
    if (actionData.HasPostError)
    {
        Exception postException = actionData.PostException;
        Console.WriteLine( string.Format("Post failed : {0}", postException.Message);
    }
}
Requirements

Target Platforms: Windows XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)

Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.

See Also

Reference

ActionData Class
ActionData Members
HasPostError Property

 

 


Send Comment