Responder 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 Exception _
) As Boolean
'Usage
 
Dim instance As DataSyntax
Dim exception As Exception
Dim value As Boolean
 
value = instance.IsPotentiallyRecoverableError(exception)
public abstract bool IsPotentiallyRecoverableError( 
   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 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

DataSyntax Class
DataSyntax Members

 

 


Send Comment