com.flexive.shared.exceptions
Interface FxLocalizedException

All Known Implementing Classes:
FxApplicationException, FxCmisQueryException, FxCmisSqlParseException, FxConfigException, FxConstraintViolationException, FxContentTypeConversionException, FxConversionException, FxCreateException, FxDbException, FxEntryExistsException, FxEntryInUseException, FxInvalidLanguageException, FxInvalidParameterException, FxInvalidQueryNodeException, FxInvalidStateException, FxLoadException, FxLockException, FxLookupException, FxNoAccessException, FxNotFoundException, FxRemoveException, FxRestApiTokenExpiredException, FxRuntimeException, FxSqlSearchException, FxStreamException, FxTreeException, FxUpdateException

public interface FxLocalizedException

Common interface for flexive exceptions.

Author:
Daniel Lichtenberger (daniel.lichtenberger@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at)

Method Summary
 FxExceptionMessage getExceptionMessage()
          Get the underlying exception message object
 java.lang.String getMessage()
          Get the localized message in the default locale (english)
 java.lang.String getMessage(FxLanguage locale)
          Get the localized message for a locale
 java.lang.String getMessage(long localeId)
          Get the localized message for a localeId
 java.lang.String getMessage(UserTicket ticket)
          Get the localized message for a calling users locale
 

Method Detail

getMessage

java.lang.String getMessage()
Get the localized message in the default locale (english)

Returns:
localized message

getMessage

java.lang.String getMessage(FxLanguage locale)
Get the localized message for a locale

Parameters:
locale - locale to get the message got
Returns:
localized message

getMessage

java.lang.String getMessage(long localeId)
Get the localized message for a localeId

Parameters:
localeId - locale id to get the message for
Returns:
localized message

getMessage

java.lang.String getMessage(UserTicket ticket)
Get the localized message for a calling users locale

Parameters:
ticket - calling users ticket, used to get the locale for the message from
Returns:
localized message

getExceptionMessage

FxExceptionMessage getExceptionMessage()
Get the underlying exception message object

Returns:
underlying exception message object