Autodesk Vault ProfessionalVault API

GetParser Method

Autodesk.DataManagement.Client.Framework.ServicesIExceptionParserRegistrationService

Retrieves the parser that is used to interrogate an exception object.

Syntax

IExceptionParserProvider GetParser(
   System.Exception ex
)
Function GetParser( _
   ByVal ex As System.Exception _
) As IExceptionParserProvider

Parameters

NameDescription
exThe exception to retrieve a parser for.

Return Value

The provider used to parse ex. This should never be null because the framework has a built in parser registered with the base class. That parser will be used as a last resort.

Remarks

If a parser is not associated with the specified exception, then the framework will check if a parser is associated with the exceptions base class.

See Also