ArcFM Responder Mobile Developer Guide
IsPotentiallyRecoverableError Method (DataSyntax)






The exception instance.
Indicates whether the exception represents an error that is recoverable; that is, the offending query is likely to succeed if performed again.
Syntax
'Declaration
 
Public MustOverride Function IsPotentiallyRecoverableError( _
   ByVal exception As System.Exception _
) As System.Boolean
'Usage
 
Dim instance As DataSyntax
Dim exception As System.Exception
Dim value As System.Boolean
 
value = instance.IsPotentiallyRecoverableError(exception)
public abstract System.bool IsPotentiallyRecoverableError( 
   System.Exception exception
)
public function IsPotentiallyRecoverableError( 
    exception: System.Exception
): System.Boolean; abstract; 
public __abstract function IsPotentiallyRecoverableError( 
   exception : System.Exception
) : System.boolean;
public: abstract System.bool IsPotentiallyRecoverableError( 
   System.Exception* exception
) 
public:
abstract System.bool IsPotentiallyRecoverableError( 
   System.Exception^ exception
) 

Parameters

exception
The exception instance.

Return Value

true if exception is potentially recoverable; otherwise, false.
Remarks

This method should return true if it is possible for the database insert, update, or delete operation to succeed if attempted again (the calling method is likely to throw a RetryException to force a "retry" of the query.

An Oracle deadlock detected error or a SQLServer snapshot isolation update conflict error is not the result of the data change, but more the result of a timing issue. In this case, it is reasonable to return true. On the other hand, an optimistic concurrency failure is related to the data involved and is unlikely to change is attempted again at a later time; in this case, the method should return false.

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

DataSyntax Class
DataSyntax Members

Send Feedback