| | |
| | | * |
| | | * |
| | | * Copyright 2008-2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | */ |
| | | |
| | | package org.opends.admin.ads; |
| | | |
| | | import static org.opends.messages.QuickSetupMessages.*; |
| | | |
| | | import org.opends.messages.Message; |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | import org.opends.server.types.OpenDsException; |
| | | |
| | | |
| | |
| | | * @param msg the message describing the error. |
| | | * @param x the throwable that generated this exception. |
| | | */ |
| | | public ADSContextException(ErrorType error, Message msg, Throwable x) |
| | | public ADSContextException(ErrorType error, LocalizableMessage msg, Throwable x) |
| | | { |
| | | super(msg); |
| | | this.error = error; |
| | |
| | | return toString; |
| | | } |
| | | |
| | | private static Message getMessage(ErrorType error, Throwable x) |
| | | private static LocalizableMessage getMessage(ErrorType error, Throwable x) |
| | | { |
| | | Message msg; |
| | | LocalizableMessage msg; |
| | | if (x != null) |
| | | { |
| | | if (x instanceof OpenDsException) |