Class InformationExceptions
java.lang.Object
ch.tocco.nice2.web.core.api.exception.InformationExceptions
Creates Exceptions which are shown to the user
-
Method Summary
Modifier and TypeMethodDescriptionstatic TextInformationExceptioncreates a exception using a string which will be displayed to the user as is.textMessage(TextMessage textMessage) Same behaviour astextMessage(String)but you can pass theTextMessageto display directly.textMessage(String textKey) Creates an exception which gets the text from the provided text resource key and displays it to the user.textResource(String textResourceKey) Creates an exception containing a text resource key.
-
Method Details
-
text
creates a exception using a string which will be displayed to the user as is. -
textResource
Creates an exception containing a text resource key. Use this exception if you want to handle the display of the message yourself (in java script). -
textMessage
Creates an exception which gets the text from the provided text resource key and displays it to the user. -
textMessage
Same behaviour astextMessage(String)but you can pass theTextMessageto display directly. Use this method if you want to set variables in yourTextMessage.
-