Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Custom messages are declared in messages.xml file, which must be created under <custom_project>/web/WebContent/metadata directory. 

...

Define Custom Messages

To define a custom error, question or informational message you have to use a unique message code, define the expression and description.

For the expression value, you must use a key. For more information on how to use glossary mechanism implementing messages, go to go to Use Glossary Mechanism - Exceptions / Questions / Informational Messages

In the following example, a new error message is defined

Code Block
languagexml
titlemessages.xml
collapsetrue
<messageconfig>
	<messages>
		<message>
			<code>EXCEPTION.NOEFFECTIVESMSSETTINGSEXCEPTION</code>
			<expression>key_exception_noeffectivesmssettings</expression>
			<description>No Effective SMS Profile Settings Configure In The System.</description>
		</message>
	</messages>
</messageconfig>