Edit

Share via


DesignerSerializationManager.IDesignerSerializationManager.ReportError Method

Definition

Used to report a recoverable error in serialization.

 virtual void System.ComponentModel.Design.Serialization.IDesignerSerializationManager.ReportError(System::Object ^ errorInformation) = System::ComponentModel::Design::Serialization::IDesignerSerializationManager::ReportError;
void IDesignerSerializationManager.ReportError (object errorInformation);
abstract member System.ComponentModel.Design.Serialization.IDesignerSerializationManager.ReportError : obj -> unit
override this.System.ComponentModel.Design.Serialization.IDesignerSerializationManager.ReportError : obj -> unit
Sub ReportError (errorInformation As Object) Implements IDesignerSerializationManager.ReportError

Parameters

errorInformation
Object

An object containing the error information, usually of type String or Exception.

Implements

Exceptions

This property was accessed outside of a serialization session.

Remarks

Serializers can be written to handle recoverable errors gracefully by calling the IDesignerSerializationManager.ReportError method with the error information. The serialization manager may support reporting a list of errors after it completes, or it may throw an exception from this method and abort the serialization process. The serializer should continue after calling this function.

IDesignerSerializationManager.ReportError adds the errorInformation parameter to the Errors collection. If errorInformation is null, no action is taken.

Applies to

See also