code: private IllegalArgumentException toExternalException(final NonZeroCodeException e) {
          return new IllegalArgumentException(
                  String.format(
                          "Command %s returned code %s with the following errors: \n\n%s\n",
                          e.getCommand().toString(),
                          e.getResponse().getReturnCode(),
                          e.getResponse().getErrors() + "\n\n" + e.getResponse().getOutput()
                  )
          );
      }
docs: Helper methods