public class UiExceptionThrower extends Object
| Constructor and Description |
|---|
UiExceptionThrower(Class<?> clazz,
String methodName)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
throwIt(Exception e)
Throw an NgcUiException containing a log-message only.
|
void |
throwIt(Exception e,
String localizationKey)
Throw an NgcUiException containing both a log-message and an error-message for the user.
|
void |
throwIt(Exception e,
String localizationKey,
Map<String,String> replacements)
Throw an NgcUiException containing both a log-message and an error-message for the user.
|
void |
throwIt(String localizationKey)
Throw an NgcUiException containing both an error-message for the user only.
|
void |
throwIt(String message,
String localizationKey)
Throw an NgcUiException containing both a log-message and an error-message for the user.
|
void |
throwIt(String message,
String localizationKey,
Map<String,String> replacements)
Throws a NgcUiException containing the error message and the user message with replacements.
|
public void throwIt(Exception e, String localizationKey) throws NgcUiException
e - causing exceptionlocalizationKey - localization key for user error-messageNgcUiException - exception to be handled by viewpublic void throwIt(Exception e, String localizationKey, Map<String,String> replacements) throws NgcUiException
e - causing exceptionlocalizationKey - localization key for user error-messagereplacements - string replacements for user error messageNgcUiException - exception to be handled by viewpublic void throwIt(String message, String localizationKey) throws NgcUiException
message - log-messagelocalizationKey - localization key for user error-messageNgcUiException - exception to be handled by viewpublic void throwIt(String localizationKey) throws NgcUiException
localizationKey - localization key for user error-messageNgcUiException - exception to be handled by viewpublic void throwIt(Exception e) throws NgcUiException
e - causing exceptionNgcUiException - exception to be handled by viewpublic void throwIt(String message, String localizationKey, Map<String,String> replacements) throws NgcUiException
message - error messagelocalizationKey - localization key for user messagereplacements - replacements for user messageNgcUiException - exception to be handled by viewCopyright © 2016 Lexmark Enterprise Software Deutschland GmbH. All rights reserved.