Class ExceptionExtensions
Extension methods for Exception
Inherited Members
Namespace: PayrollEngine.Client
Assembly: PayrollEngine.Client.Core.dll
Syntax
public static class ExceptionExtensions
Methods
GetApiErrorMessage(Exception)
Get the exception message from an API error
Declaration
public static string GetApiErrorMessage(this Exception exception)
Parameters
| Type | Name | Description |
|---|---|---|
| Exception | exception |
Returns
| Type | Description |
|---|---|
| string | The payroll API error, null on others errors |