Miner.Data.Access Namespace > DataSyntax Class : IsPotentiallyRecoverableError Method |
'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 )
true
if exception is potentially recoverable; otherwise, false
.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.
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