# UndoException class

Namespace: [Grasshopper2.Undo](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.undo.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public sealed class UndoException : Exception
```

Exception thrown when undo actions are incorrectly undone/redone.

## Constructors

- [UndoException](https://developer.rhino3d.com/api/gh2/type/grasshopper2.undo.undoexception/ctor.md)

## Properties

- [CannotRedo](https://developer.rhino3d.com/api/gh2/type/grasshopper2.undo.undoexception/cannotredo.md): (static)
- [CannotUndo](https://developer.rhino3d.com/api/gh2/type/grasshopper2.undo.undoexception/cannotundo.md): (static)
- [MissingObject](https://developer.rhino3d.com/api/gh2/type/grasshopper2.undo.undoexception/missingobject.md): (static)
- [MissingRedoData](https://developer.rhino3d.com/api/gh2/type/grasshopper2.undo.undoexception/missingredodata.md): (static)
- [MissingUndoData](https://developer.rhino3d.com/api/gh2/type/grasshopper2.undo.undoexception/missingundodata.md): (static)
- [NoDocument](https://developer.rhino3d.com/api/gh2/type/grasshopper2.undo.undoexception/nodocument.md): (static)
- [UnknownObject](https://developer.rhino3d.com/api/gh2/type/grasshopper2.undo.undoexception/unknownobject.md): (static)
- [WrongObject](https://developer.rhino3d.com/api/gh2/type/grasshopper2.undo.undoexception/wrongobject.md): (static)
