Package org.forgerock.openam.core.realms
Class RealmLookupException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.sun.identity.shared.locale.L10NMessageImpl
-
- org.forgerock.openam.core.realms.RealmLookupException
-
- All Implemented Interfaces:
com.sun.identity.shared.locale.L10NMessage
,Serializable
public class RealmLookupException extends com.sun.identity.shared.locale.L10NMessageImpl
Signals that the realmString
used to lookup a realm failed due to it being an invalid realm identifier or the lookup operation failed.- Since:
- 14.0.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RealmLookupException(String errorCode, String realm)
Constructs a new exception with the specified detail message and cause.RealmLookupException(Throwable cause)
Constructs a new exception with the specifiedThrowable
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getRealm()
Gets the realm that could not be found.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
RealmLookupException
public RealmLookupException(String errorCode, String realm)
Constructs a new exception with the specified detail message and cause.- Parameters:
errorCode
- Key to theIdRepoBundle#BUNDLE_NAME
resource bundle.realm
- The realm.
-
RealmLookupException
public RealmLookupException(Throwable cause)
Constructs a new exception with the specifiedThrowable
.- Parameters:
cause
- The cause.
-
-
Method Detail
-
getRealm
public String getRealm()
Gets the realm that could not be found.- Returns:
- The realm.
-
-