Autodesk Vault ProfessionalVault API

RegisterProvider Method

Autodesk.DataManagement.Client.Framework.Forms.ServicesICustomUIExceptionRegistrationService

Associates a Custom UI Exception Provider with a specific exception.

Syntax

void RegisterProvider(
   System.Type exceptionType,
   System.string errorCode,
   ICustomUIExceptionProvider provider
)
Sub RegisterProvider( _
   ByVal exceptionType As System.Type, _
   ByVal errorCode As System.String, _
   ByVal provider As ICustomUIExceptionProvider _
) 

Parameters

NameDescription
exceptionTypeThe type of the exception (ie. typeof(VaultServiceErrorException)).
errorCodeThe error code which triggers the custom handler (ie. "301"). If null or empty, then the provider will be executed for all exceptions of the specified exceptionType.
providerThe provider that gets executed when an exception which matches the exceptionType and errorCode is processed via Autodesk.DataManagement.Client.Framework.Forms.Library.ShowError(ex).

See Also