org.pdfsam.emp4j.messages.interfaces
Interface InquirableMessagesSource

All Known Implementing Classes:
AbstractMessagesSource, XmlMessagesSource

public interface InquirableMessagesSource

Interface for the message source

Author:
Andrea Vacondio

Method Summary
 java.lang.String getExceptionMessage(java.lang.Object exceptionTypeKey, int exceptionErrorCode)
           
 java.lang.String getExceptionMessage(java.lang.Object exceptionTypeKey, int exceptionErrorCode, java.lang.String[] args)
           
 java.lang.String getLocalizedExceptionMessage(java.lang.Object exceptionTypeKey, int exceptionErrorCode)
           
 java.lang.String getLocalizedExceptionMessage(java.lang.Object exceptionTypeKey, int exceptionErrorCode, java.lang.String[] args)
           
 

Method Detail

getLocalizedExceptionMessage

java.lang.String getLocalizedExceptionMessage(java.lang.Object exceptionTypeKey,
                                              int exceptionErrorCode,
                                              java.lang.String[] args)
                                              throws java.lang.Exception
Parameters:
exceptionTypeKey - Exception type key
exceptionErrorCode - Exception error code
args - Strings to be substituted to the message
Returns:
the localized exception message
Throws:
java.lang.Exception

getExceptionMessage

java.lang.String getExceptionMessage(java.lang.Object exceptionTypeKey,
                                     int exceptionErrorCode,
                                     java.lang.String[] args)
                                     throws java.lang.Exception
Parameters:
exceptionTypeKey - Exception type key
exceptionErrorCode - Exception error code
args - Strings to be substituted to the message
Returns:
the exception message
Throws:
java.lang.Exception

getLocalizedExceptionMessage

java.lang.String getLocalizedExceptionMessage(java.lang.Object exceptionTypeKey,
                                              int exceptionErrorCode)
                                              throws java.lang.Exception
Parameters:
exceptionTypeKey - Exception type key
exceptionErrorCode - Exception error code
Returns:
the localized exception message
Throws:
java.lang.Exception

getExceptionMessage

java.lang.String getExceptionMessage(java.lang.Object exceptionTypeKey,
                                     int exceptionErrorCode)
                                     throws java.lang.Exception
Parameters:
exceptionTypeKey - Exception type key
exceptionErrorCode - Exception error code
Returns:
the exception message
Throws:
java.lang.Exception