Example #1
0
  /**
   * Creates new exception with translation code for i18n.
   *
   * @param faultCode the fault code
   * @param trCode the translation code
   * @param faultMessage the message
   * @return CodedException
   */
  public static CodedException tr(String faultCode, String trCode, String faultMessage) {
    CodedException ret = new CodedException(faultCode, faultMessage);

    ret.translationCode = trCode;

    return ret;
  }