# Error class

Namespace: [Grasshopper2.UI.ErrorFeedback](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.ui.errorfeedback.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public sealed class Error
```

A mutable collection of values representing information about some error.

## Constructors

- [Error](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.errorfeedback.error/ctor.md): Create a new error based on an exception.

## Properties

- [Actions](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.errorfeedback.error/actions.md): Gets the collection of actions this error exposes. Append actions to this collection to give the user tools for dealing with the error.
- [Context](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.errorfeedback.error/context.md): Gets the context or title for this error. This ought to inform the user of the area of code from which this error stems. The context may only be set from the constructor.
- [ErrorId](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.errorfeedback.error/errorid.md): Gets or sets the Id of this error. Errors with non-zero Ids may be disabled by the user.
- [Exception](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.errorfeedback.error/exception.md): Gets the exception for this error, if any. The exception may only be assigned at construction.
- [Explanation](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.errorfeedback.error/explanation.md): Gets or sets the human-friendly explanation of this error. This is typically a translation of the [Error.Message](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.errorfeedback.error/message.md) field into basic human natural language.
- [Location](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.errorfeedback.error/location.md): Gets or sets the location text for this error. This would typically be the filename and linenumber of the exception: PluginServer.cs line 397
- [Message](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.errorfeedback.error/message.md): Gets or sets the message of this error. This is typically the same as the [Exception.Message](https://learn.microsoft.com/dotnet/api/system.exception.message) of the [Error.Exception](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.errorfeedback.error/exception.md) associated with this error. It is meant to be exact and informative to the developer, not the user.
- [Origin](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.errorfeedback.error/origin.md): Gets or sets the origin text for this error. This would typically be the name of the type and method which threw the exception.
- [Suggestions](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.errorfeedback.error/suggestions.md): Gets or sets the suggestions for the user to respond to this error. This is typically a list of possible actions which the software cannot perform itself expressed in basic human natural language.

## Methods

- [SetLocation](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.errorfeedback.error/setlocation.md): Assign the [Error.Location](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.errorfeedback.error/location.md) field.
- [SetOrigin](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.errorfeedback.error/setorigin.md): Assign the [Error.Origin](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.errorfeedback.error/origin.md) field. This method automatically inserts dots between the elements.
- [Show](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.errorfeedback.error/show.md): (2 overloads) Show this error.
- [ShowModal](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.errorfeedback.error/showmodal.md): (2 overloads) Show this error and wait for it to be closed before returning.
