Package com.sun.identity.shared.locale
Interface L10NMessage
-
- All Known Implementing Classes:
ActiveRequestorException,AMAuthCallBackException,AMClientCapException,AMConfigurationException,AMEntryExistsException,AMEventManagerException,AMException,AMInvalidDNException,AMPostCallBackException,AMPreCallBackException,AuthenticationException,AuthErrorCodeException,AuthException,AuthLoginException,AuthnSvcException,ChainedException,ConfigurationException,ConfigurationException,ConfiguratorException,COTException,DataStoreProviderException,DelegationException,DiscoveryException,EncryptionException,FilesRepoEntryNotFoundException,FSAccountMgmtException,FSException,FSLoginHelperException,FSMsgException,FSPostLoginException,FSPreLoginException,FSRedirectException,FSSignatureException,IdentityNotFoundException,IDFFMetaException,IdRepoDuplicateObjectException,IdRepoException,IdRepoFatalException,IdRepoUnsupportedOpException,InteractionException,InteractionRedirectException,InteractionSOAPFaultException,InvalidAppSSOTokenException,InvalidAttributeNameException,InvalidAttributeValueException,InvalidFormatException,InvalidNameException,InvalidPasswordException,InvalidSessionIdException,InvalidStatusCodeSaml2Exception,L10NMessageImpl,LDAPUtilException,LimitExceededException,LogException,LoginTimeOutException,MessageLoginException,MultipleRealmsFoundException,NameAlreadyExistsException,NameNotFoundException,NoPermissionException,NoRealmFoundException,ObjectInUseException,OrganizationAlreadyExistsException,PAOSException,PasswordPolicyException,PolicyEvaluationException,PolicyException,PWResetException,QueryException,RealmLookupException,SAML2Exception,SAML2InvalidNameIDPolicyException,SAML2MetaException,SAMLException,SAMLRequesterException,SAMLRequestVersionDeprecatedException,SAMLRequestVersionTooHighException,SAMLRequestVersionTooLowException,SAMLResponderException,SAMLVersionMismatchException,SchemaException,ScriptException,ServiceAlreadyExistsException,ServiceNotFoundException,SessionException,SessionException,SessionTimedOutException,SMSException,SSOException,SSOTokenListenersUnsupportedException,SystemConfigurationException,UnknownPropertyNameException,UpgradeException,UserNamePasswordValidationException,ValidationException,ValidationException,WorkflowException,WSFederationException,WSFederationMetaException,XACMLException,XMLSignatureException
public interface L10NMessageThis interface provides access to error code and resource bundle name to provide localised error message.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetErrorCode()Use this method to chain this exception with another to get localized error messge use getL10NMessage methodStringgetL10NMessage(Locale loc)Use this method to get localized error message directly.StringgetMessage()Use this method to get error message in default ENGLISH locale.Object[]getMessageArgs()Use this method to chain this exception with another to get localized error messge use getL10NMessage methodStringgetResourceBundleName()Use this method to chain this exception with another to get localized error messge use getL10NMessage method
-
-
-
Method Detail
-
getL10NMessage
String getL10NMessage(Locale loc)
Use this method to get localized error message directly.- Parameters:
loc- Locale of the error message.- Returns:
- localized error message.
-
getResourceBundleName
String getResourceBundleName()
Use this method to chain this exception with another to get localized error messge use getL10NMessage method- Returns:
- ResourceBundle Name associated with this error message.
-
getErrorCode
String getErrorCode()
Use this method to chain this exception with another to get localized error messge use getL10NMessage method- Returns:
- Error code associated with this error message.
-
getMessageArgs
Object[] getMessageArgs()
Use this method to chain this exception with another to get localized error messge use getL10NMessage method- Returns:
- arguments for formatting this error message. You need to use MessageFormat class to format the message It can be null.
-
getMessage
String getMessage()
Use this method to get error message in default ENGLISH locale.- Returns:
- gets error message
-
-