> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Method _handleError

Namespace: [Phoenix.ComponentPlugInSDK.ViewModels](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.ViewModels)\
Assembly: Phoenix.ComponentPlugInSDK.dll

## \_handleError(Exception)

Function to use to handle errors in command executions

```csharp theme={null}
protected void _handleError(Exception ex)

```

### Parameters

`ex` [Exception](https://learn.microsoft.com/dotnet/api/system.exception)

The Exception to handle.
