# MethodInvocationException Class

Namespace: [Qlik.Engine](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.htm)  
Assembly: Qlik.Engine.dll

The Exception thrown when a method has gone wrong on the server during execution.

## Inheritance

* System.Object
  * System.Exception
    * System.SystemException
      * [MethodInvocationException](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.MethodInvocationException.htm)
        * MethodInvocationException

## Syntax

```
public class MethodInvocationException : MethodInvocationException, ISerializable, _Exception
```

## Constructors

| Name | Description |
| --- | --- |
| [MethodInvocationException(String, MethodInvocationException.Error)](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.MethodInvocationException.-ctor.htm#Qlik_Engine_MethodInvocationException__ctor_System_String_Qlik_Sense_JsonRpc_MethodInvocationException_Error_) | Initializes a new instance of the MethodInvocationException class with a specified error message and a reference to the Qlik Sense error that is the cause of this exception. |

## Properties

| Name | Description |
| --- | --- |
| [InvocationError](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.MethodInvocationException.InvocationError.htm#Qlik_Engine_MethodInvocationException_InvocationError) | Gets the Qlik Sense error that caused the current exception |