Use
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 precisely describe the errors. See also:
Procedure
To create attributes for an exception class, proceed as described in
Creating Attributes. You should make sure that the users cannot change these attributes. To do so, activate the Read-only checkbox when defining the attribute.