HS.Util.Status.PersistentHelper
abstract class HS.Util.Status.PersistentHelper
This class enables writing and localization of user-friendly error messages related to foreign and unique key violations.To use it, include this class as a secondary super class (also extending %Persistent directly or indirectly), override the
StatusMetadata
XData block, and add descriptive messages related to violations of any unique or foreign keys defined in the subclass.
Also, ensure that you provided a DOMAIN parameter and set it to the error message domain you desire (usually "HS").
@API.Extensible
@Modifier Availability InterSystems
Parameters
parameter DOMAIN = HS;
Used by StatusMetadata for error message translations