HS.Util.Status.Interpreter
class HS.Util.Status.Interpreter
Method Inventory
Parameters
parameter DOMAIN = HS;
parameter DefaultErrorText = $$$Text("An internal error occurred.","HS");
parameter DefaultErrorTextDetailed = $$$Text("An internal error occurred: %1","HS");
parameter ShowInternalErrorDetails = 1;
Methods
classmethod GetErrorText(pStatus As %Status, pSuppressInternalErrorDetails As %Boolean = ..#ShowInternalErrorDetails) as %String
Interprets an error status into a more user-friendly error message based on foreign/unique key metadata. (See HS.Util.Status.PersistentHelper.)
@API.Method
@Modifier Availability InterSystems
classmethod GetErrorTextSQL(pSQLCode As %Integer, pMessage As %String, pSuppressInternalErrorDetails As %Boolean = 1) as %String
Interprets an SQL error as a more user-friendly error message based on foreign/unique key metadata. (See HS.Util.Status.PersistentHelper.)
@API.Method
@Modifier Availability InterSystems