RegisterProvider Method
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
| Name | Description |
|---|---|
| exceptionType | The type of the exception (ie. typeof(VaultServiceErrorException)). |
| errorCode | The 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. |
| provider | The provider that gets executed when an exception which matches the exceptionType and errorCode is processed via Autodesk.DataManagement.Client.Framework.Forms.Library.ShowError(ex). |