ArcFM Responder Mobile Developer Guide
PostException Property
Example 






Gets or sets the Post Exception.
Syntax
'Declaration
 
Public Property PostException As System.Exception
'Usage
 
Dim instance As ActionData
Dim value As System.Exception
 
instance.PostException = value
 
value = instance.PostException
public System.Exception PostException {get; set;}
public read-write property PostException: System.Exception; 
public function get,set PostException : System.Exception
public: __property System.Exception* get_PostException();
public: __property void set_PostException( 
   System.Exception* value
);
public:
property System.Exception^ PostException {
   System.Exception^ get();
   void set (    System.Exception^ value);
}
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 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ActionData Class
ActionData Members
HasPostError Property

Send Feedback