---
title: "GMException.GetManagedException Method "
canonical: https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_GMException_GetManagedException_1_4cd1f3f7.htm
archived: false
applies_to:
  - product: "Graphics Mill"
    versions: ["12.1", "6.x-12.x (may differ)"]
    entity_id: "https://www.graphicsmill.com/#software-application"
---

# GMException.GetManagedException Method 

**Applies to:** Graphics Mill 12.1, 6.x-12.x (may differ)
 
Converts an unmanaged exception to a managed one. Should never used directly!
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```csharp
public static Exception GetManagedException(IntPtr unmanagedException
)
```
 
### Parameters
 
 - unmanagedException
     - Type: System.IntPtr
The pointer to an unmanaged exception.
 
### Return Value
The managed exception.
 
## Remarks
 This method is used by Graphics Mill infrastructure and should not be called directly.
   
## See Also

### Reference

- [GMException Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_GMException.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill.htm.md)
