IExceptionParserProvider Interface
Autodesk.DataManagement.Client.Framework›Autodesk.DataManagement.Client.Framework.Interfaces
Provides details about a specific type of Exception object.
Syntax
public interface IExceptionParserProvider Public Interface IExceptionParserProvider Properties
| Name | Description |
|---|---|
| ExceptionType | Gets the type of exception that is managed by this provider |
Methods
| Name | Description |
|---|---|
| GetErrorCode | Returns an error code that identifies the error. Not all exception types support this but it can be of use for certain types if the app wants to have special business logic to handle an error |
| GetMessage | Retrieves a textual description of the exception |
| GetRestrictions | Returns a list of restrictions that may be embedded in an exception object. |
| GetTitle | Retrieves a caption to display in a dialog box for an exception. This can return a generic message like "Error", but it can also return a more detailed message like "File Access Error" where the GetMessage() would return more specific details on the error |
| IsExpected | Returns true if the exception is one that could happen naturally and should be handled gracefully...not as a fatal error. For example "File checked out to another user" is an expected exception. "Object reference not found" or "Index out of range" is not |
Returned By
Where you get a IExceptionParserProvider — members that return one.