RVTDocs.com

ControlledApplication.RegisterFailuresProcessor

Method
Description:
Replaces Revit's default user interface (if present) with alternative handling for all warnings and errors (including those not generated by your application) for the rest of the Revit session; if your application is not prepared to respond to all warnings
Remarks:
If there is previously registered Failures Processor, it gets discarded. If you opt to register a FailuresProcessor for Revit, your processor will become the default error handler for all Revit errors for the session. The standard Revit error dialog will not appear.
Syntax
public static void RegisterFailuresProcessor(
	IFailuresProcessor processor
)
Parameters
Parameter Type Description
processor IFailuresProcessor Instance of Failures Processor to be used by the Revit Application.
Return Value
Exceptions
Exception Condition
ArgumentNullException A non-optional argument was null