mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

matthew_swift
04.57.2007 e778e6f04a36e55cdb88ff8448eef804c487286b
Improve content of CommunicationException when they contain only a cause.
2 files modified
5 ■■■■ changed files
opends/src/messages/messages/admin.properties 2 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/admin/client/CommunicationException.java 3 ●●●● patch | view | raw | blame | history
opends/src/messages/messages/admin.properties
@@ -253,3 +253,5 @@
 properties are mandatory: %s
SEVERE_ERR_PROPERTY_NOT_FOUND_EXCEPTION_110=The property "%s" was not \
 recognized
SEVERE_ERR_COMMUNICATION_EXCEPTION_DEFAULT_CAUSE_111=A communication problem \
 occurred while contacting the server: %s
opends/src/server/org/opends/server/admin/client/CommunicationException.java
@@ -68,7 +68,8 @@
   *          The cause.
   */
  public CommunicationException(Throwable cause) {
    super(ERR_COMMUNICATION_EXCEPTION_DEFAULT.get(), cause);
    super(ERR_COMMUNICATION_EXCEPTION_DEFAULT_CAUSE.get(cause.getMessage()),
        cause);
  }