# AccessException class

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

```cs
public sealed class AccessException : Exception
```

Type of exception thrown when the access level for data in a parameter doesn't match with the predefined level.

## Constructors

- [AccessException](https://developer.rhino3d.com/api/gh2/type/grasshopper2.components.accessexception/ctor.md): (4 overloads)

## Properties

- [InvokedAccess](https://developer.rhino3d.com/api/gh2/type/grasshopper2.components.accessexception/invokedaccess.md): Gets the access invoked by the caller.
- [RequiredAccess](https://developer.rhino3d.com/api/gh2/type/grasshopper2.components.accessexception/requiredaccess.md): Gets the access as specified by the parameter.
