Table of Contents

Interface IError

Namespace
nadena.dev.ndmf

A base interface for custom NDMF error reports.

public interface IError

Properties

Severity

The severity of the error

ErrorSeverity Severity { get; }

Property Value

ErrorSeverity

Methods

AddReference(ObjectReference)

Adds a reference to a context object that might be helpful for tracking down the error.

void AddReference(ObjectReference obj)

Parameters

obj ObjectReference

CreateVisualElement(ErrorReport)

Creates a VisualElement used to display the error in the error report window.

VisualElement CreateVisualElement(ErrorReport report)

Parameters

report ErrorReport

The report this error is in

Returns

VisualElement

A VisualElement to display

ToMessage()

Formats the error as a string, suitable for being dumped to the unity log.

string ToMessage()

Returns

string