I'd like to have this function in ThreadUI instead of here (because like this we have a bidirectional link between ErrorDialog and ThreadUI: ThreadUI needs ErrorDialog and ErrorDialog needs ThreadUI) but I don't have a great idea right now. Maybe that means that ErrorDialog should really be a ThreadUI property, like `ThreadUI.ErrorDialog` ? (in Java, we'd say a "inner class"). Let's keep this question for later.

But I think we can already do better now. How about this plan:
* move this function inside the closure.
* move the `nonActiveId` logic in another function
* in the ERRORS array, add a `confirmHandler` property for `NonActiveSimCardError` pointing to the first function
* in the ERRORS array, add a `bodyParamsGetter` property instead of `messageRetrieve`, pointing to the second function
* in `paramsGenerator` simply do something like:
```javascript
if (actions.confirmHandler) {
  options.confirm = {
    text: ...
    method: actions.confirmHandler
  };
}
if (actions.bodyParamsGetter) {
  messageBodyParams = actions.bodyParamsGetter(opts.messageId);
}
```

This way this is at least more generic.

How does that sound?