# LoggedException class

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

```cs
public class LoggedException : Exception
```

An exception which automatically logs itself with the central Grasshopper logging object.

## Constructors

- [LoggedException](https://developer.rhino3d.com/api/gh2/type/grasshopper2.diagnostics.loggedexception/ctor.md): (2 overloads) Create a new logged exception.

## Properties

- [Context](https://developer.rhino3d.com/api/gh2/type/grasshopper2.diagnostics.loggedexception/context.md): Gets the context for this exception.
