com.cedarsoft.exceptions
Interface ApplicationException.Details

Enclosing class:
ApplicationException

public static interface ApplicationException.Details


Method Summary
 ErrorCode getErrorCode()
          Returns the error code
 String getLocalizedMessage(Locale locale, Object... messageArguments)
          Returns the localized message (without the error code)
 String getLocalizedMessage(Object... messageArguments)
          Returns the localized message (without the error code)
 String getTitle(Locale locale, Object... messageArguments)
          Returns the title
 String getTitle(Object... messageArguments)
          Returns the title
 

Method Detail

getLocalizedMessage

@Nonnull
String getLocalizedMessage(@Nullable
                                   Object... messageArguments)
Returns the localized message (without the error code)

Parameters:
messageArguments - the message arguments
Returns:
the localized message

getLocalizedMessage

@Nonnull
String getLocalizedMessage(@Nonnull
                                   Locale locale,
                                   @Nullable
                                   Object... messageArguments)
Returns the localized message (without the error code)

Parameters:
locale - the locale
messageArguments - the message arguments
Returns:
the localized message

getTitle

@Nonnull
String getTitle(@Nullable
                        Object... messageArguments)
Returns the title

Parameters:
messageArguments - the message arguments
Returns:
the title

getTitle

@Nonnull
String getTitle(@Nonnull
                        Locale locale,
                        @Nullable
                        Object... messageArguments)
Returns the title

Parameters:
locale - the locale
messageArguments - the message arguments
Returns:
the title

getErrorCode

@Nonnull
ErrorCode getErrorCode()
Returns the error code

Returns:
the error code


Copyright © 2012 cedarsoft GmbH. All Rights Reserved.