---
title: "Exception..::.ThrowManagedException Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Exception_ThrowManagedException_1_4cd1f3f7.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# Exception.ThrowManagedException Method 
 
Used by Graphics Mill for .NET to convert internal unmanaged exception to managed ones. Do not call this method directly.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Shared Sub ThrowManagedException ( _unmanagedException As IntPtr _
)
```
 
```csharp
public static void ThrowManagedException(IntPtr unmanagedException
)
```
 
### Parameters
 
 - unmanagedException
     - Type: [System.IntPtr](http://msdn2.microsoft.com/en-us/5he14kz8)
The pointer to the internal Graphics Mill for .NET unmanaged exception.
   
## See Also

### Reference

- [Exception Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Exception.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
