# IErrorsAndWarnings

> Interface for a container that handles errors, warnings, and informational messages related to a graph or its elements.

## Definition

* **Type:** Interface
* **Namespace:** [Unity.GraphToolkit.Editor](/engine/6000.7/script-reference/unity/graphtoolkit/editor.md)
* **Assembly:** UnityEditor

```csharp
public interface IErrorsAndWarnings
```

## Remarks

Implement this interface to provide logging capabilities for graph-related components. Logged messages can optionally be associated with a specific object in the graph, which enables displaying visual markers in the UI. All messages are also forwarded to the Unity Console.

## Methods

| Method                                                                                                   | Description                    |
| -------------------------------------------------------------------------------------------------------- | ------------------------------ |
| [Log](/engine/6000.7/script-reference/unity/graphtoolkit/editor/ierrorsandwarnings/log.md)               | Logs an informational message. |
| [LogError](/engine/6000.7/script-reference/unity/graphtoolkit/editor/ierrorsandwarnings/logerror.md)     | Logs an error message.         |
| [LogWarning](/engine/6000.7/script-reference/unity/graphtoolkit/editor/ierrorsandwarnings/logwarning.md) | Logs a warning message.        |
