You can use the attributes of an exception class to transport additional information about object reference errors to the handler.
You can also use attributes in exception texts to describe the errors precisely. For more information, see Creating Texts for Exception Classes .
To create attributes for an exception class, proceed as described in Creating Attributes .
Make sure that the users cannot change these attributes by setting the Read-only indicator when defining the attribute.