docs: private Exception generateException(int rc, String text,
                                          Exception linkedException, boolean throwIt)
                      throws SIResourceException, SIConnectionLostException,
                      SILimitExceededException, SIErrorException, SINotAuthorizedException,
                      SINotPossibleInCurrentConfigurationException,
                      SIIncorrectCallException, SIAuthenticationException {
  
          Exception theException;
  
          if (rc == TrmConstantsImpl.RETURN_CODE_SIResourceException) {
              SIResourceException sire = new SIResourceException(text);
              if (null != linkedException) {
                  sire.initCause(linkedException);
              }
              if (throwIt) {
                  throw sire;
              } else {
                  theException = sire;
              }
          } else if (rc == TrmConstantsImpl.RETURN_CODE_SIConnectionLostException) {
              SIConnectionLostException sicle = new SIConnectionLostException(text);
              if (null != linkedException) {
                  sicle.initCause(linkedException);
              }
              if (throwIt) {
                  throw sicle;
              } else {
                  theException = sicle;
              }
          } else if (rc == TrmConstantsImpl.RETURN_CODE_SILimitExceededException) {
              SILimitExceededException silee = new SILimitExceededException(text);
              if (null != linkedException) {
  
              }
              if (throwIt) {
                  throw silee;
              } else {
                  theException = silee;
              }
          } else if (rc == TrmConstantsImpl.RETURN_CODE_SIErrorException) {
              SIErrorException siee = new SIErrorException(text);
              if (null != linkedException) {
                  siee.initCause(linkedException);
              }
              if (throwIt) {
                  throw siee;
              } else {
                  theException = siee;
              }
          } else if (rc == TrmConstantsImpl.RETURN_CODE_SINotAuthorizedException) {
              SINotAuthorizedException sinae = new SINotAuthorizedException(text);
              if (null != linkedException) {
                  // This is not permitted!
  
              }
              if (throwIt) {
                  throw sinae;
              } else {
                  theException = sinae;
              }
          } else if (rc == TrmConstantsImpl.RETURN_CODE_SINotPossibleInCurrentConfigurationException) {
              SINotPossibleInCurrentConfigurationException sinpicce = new SINotPossibleInCurrentConfigurationException(
                              text);
              if (null != linkedException) {
                  sinpicce.initCause(linkedException);
              }
              if (throwIt) {
                  throw sinpicce;
              } else {
                  theException = sinpicce;
              }
          } else if (rc == TrmConstantsImpl.RETURN_CODE_SIIncorrectCallException) {
              SIIncorrectCallException siice = new SIIncorrectCallException(text);
              if (null != linkedException) {
                  siice.initCause(linkedException);
              }
              if (throwIt) {
                  throw siice;
              } else {
                  theException = siice;
              }
          } else if (rc == TrmConstantsImpl.RETURN_CODE_SIAuthenticationException) {
              SIAuthenticationException siae = new SIAuthenticationException(text);
              if (null != linkedException) {
                  // This is not permitted!
              }
              if (throwIt) {
                  throw siae;
              } else {
                  theException = siae;
              }
          } else {
              SIErrorException siee = new SIErrorException(text);
              if (null != linkedException) {
                  siee.initCause(linkedException);
              }
              if (throwIt) {
                  throw siee;
              } else {
                  theException = siee;
              }
          }
  
          return theException;
      }