FailuresAccessorResolveFailures Method |
Resolves one or more failures using last set failure resolution type for each of the failures.
If failure resolution type was not set for some of failures, default failure resolution type will be used.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntaxpublic void ResolveFailures(
IList<FailureMessageAccessor> failures
)
Public Sub ResolveFailures (
failures As IList(Of FailureMessageAccessor)
)
public:
void ResolveFailures(
IList<FailureMessageAccessor^>^ failures
)
member ResolveFailures :
failures : IList<FailureMessageAccessor> -> unit
Parameters
- failures IListFailureMessageAccessor
-
The accessors to the failures to be resolved.
ExceptionsException | Condition |
---|
ArgumentException |
Default resolution of one of the failures is not permitted or not applicable.
-or-
One of the failures was already attempted to resolve twice with that resolution type.
|
ArgumentNullException |
A non-optional argument was null
|
InvalidOperationException |
This FailuresAccessor is inactive (is used outside of failures processing).
-or-
Resolution of failures is not permitted in the current state of the document.
|
Remarks
After execution of the failure resolutions the failures will not be removed from the document automatically. To
prevent failure from being delivered to the user, failures (pre)processor should return ProceedWithCommit.
It will cause failures to be regenerated and failure resolution process to be restarted.
If attempt to resolve failure was not successful, and the same failure is present on repetitive calls
of the failures (pre)processor, the preprocessor code should take care to attempt
a different resolution the next time the failure appears, to avoid an infinite loop.
See Also