# CreateError(string)

> Creates an IconBadge with the "error" visual style.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Experimental.GraphView](/engine/6000.7/script-reference/unityeditor/experimental/graphview.md)
* **Assembly:** UnityEditor

```csharp
public static IconBadge CreateError(string message)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Displayed error message.

### Returns

| Type                                                                                         | Description        |
| -------------------------------------------------------------------------------------------- | ------------------ |
| [IconBadge](/engine/6000.7/script-reference/unityeditor/experimental/graphview/iconbadge.md) | The created badge. |
