| | |
| | | * |
| | | * |
| | | * Copyright 2009-2010 Sun Microsystems, Inc. |
| | | * Portions copyright 2011 ForgeRock AS. |
| | | */ |
| | | |
| | | package org.forgerock.opendj.ldap; |
| | |
| | | |
| | | /** |
| | | * 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 |
| | |
| | | * @param result |
| | | * The error result. |
| | | */ |
| | | ErrorResultException(final Result result) |
| | | protected ErrorResultException(final Result result) |
| | | { |
| | | super(result.getResultCode() + ": " |
| | | + result.getDiagnosticMessage()); |
| | |
| | | * |
| | | * @return The error result which caused this exception to be thrown. |
| | | */ |
| | | public Result getResult() |
| | | public final Result getResult() |
| | | { |
| | | return result; |
| | | } |