# DocumentCollectedException class

Namespace: [Rhino.Runtime](https://developer.rhino3d.com/api/rhinocommon/namespace/rhino.runtime.md) · Assembly: [RhinoCommon](https://developer.rhino3d.com/api/rhinocommon/assembly/rhinocommon.md)

```cs
[Serializable]
public class DocumentCollectedException : Exception
```

Represents the error that happen when a class user attempts to execute a modifying operation on an object that has been added to a document.

## Constructors

- [DocumentCollectedException](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.documentcollectedexception/ctor.md): (2 overloads) Initializes a new instance of the document controlled exception class.
