Autodesk Vault ProfessionalVault API

IsExpected Method

Autodesk.DataManagement.Client.Framework.ServicesIExceptionParserService

Determines if an exception is one that could happen naturally and should be handled gracefully or a fatal error.

Syntax

System.bool IsExpected(
   System.Exception ex
)
Function IsExpected( _
   ByVal ex As System.Exception _
) As System.Boolean

Parameters

NameDescription
exThe exception to parse.

Return Value

True if the exception is expected. False otherwise.

Remarks

For example "File checked out to another user" is an expected exception. "Object reference not found" or "Index out of range" is not

See Also