# GuestExceptionSimplifier

`com.jsmacrosce.jsmacros.graal.language.impl.GuestExceptionSimplifier`

Simplifies selected Graal guest arity and overload errors into diagnostic messages.

## Methods

### simplifyException {#com.jsmacrosce.jsmacros.graal.language.impl.GuestExceptionSimplifier_simplifyException-Throwable-}

```js
static simplifyException(Throwable ex): String
```

Simplifies guest arity and overload errors when their Graal exception details and message
format are recognized. Other exceptions and failures during simplification return the
original exception message.

**Parameters:**
- `ex`: the exception to simplify

**Returns:** the simplified diagnostic when recognized, or the original message otherwise
