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

Matthew Swift
16.43.2011 e4c9bcf4ffa0708797b87468fdd67edb5fe48b41
Fix OPENDJ-260: Make it possible to sub-class ErrorResultException
1 files modified
8 ■■■■■ changed files
opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/ErrorResultException.java 8 ●●●●● patch | view | raw | blame | history
opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/ErrorResultException.java
@@ -23,6 +23,7 @@
 *
 *
 *      Copyright 2009-2010 Sun Microsystems, Inc.
 *      Portions copyright 2011 ForgeRock AS.
 */
package org.forgerock.opendj.ldap;
@@ -38,7 +39,8 @@
/**
 * Thrown when the result code returned in a Result indicates that the Request
 * was unsuccessful.
 * was unsuccessful. This class can be sub-classed in order to implement
 * application specific exceptions.
 */
@SuppressWarnings("serial")
public class ErrorResultException extends ExecutionException
@@ -250,7 +252,7 @@
   * @param result
   *          The error result.
   */
  ErrorResultException(final Result result)
  protected ErrorResultException(final Result result)
  {
    super(result.getResultCode() + ": "
        + result.getDiagnosticMessage());
@@ -266,7 +268,7 @@
   *
   * @return The error result which caused this exception to be thrown.
   */
  public Result getResult()
  public final Result getResult()
  {
    return result;
  }