Skip to end of banner
Go to start of banner

Messages metadata

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 13 Current »

Messages

In this metadata file you can define the message texts and map an error message to a Java exception.

Attributes

NameDescriptionValue
code

The exception class path that corresponds to the message.

Any of the exception classes
expressionThe expression as displayed on the screen.Any
descriptionThe description of the message as displayed on the screen.Any

Example

 Messages
Messages
<messageconfig>
	<messages>
		<message>
			<code>COM.CRM.EXCEPTION.PRIMARYFIELDEXCEPTION</code>
			<expression>Cannot delete the default record.</expression>
			<description>Cannot delete the default record.</description>
		</message>
 
		<message>
			<code>COM.CRM.EXCEPTION.MANDATORYFIELDEXCEPTION</code>
			<expression>Please specify %1.</expression>
			<description>A mandatory field is not specified.</description>
		</message>
 
		...
 
	</messages>
</messageconfig>
  • No labels