Class Reference
SYS.ApplicationError
Server:irisdocs2
Instance:IRISLATEST
User:UnknownUser
 
-
  [%SYS] >  [SYS] >  [ApplicationError]
Private  Storage

abstract class SYS.ApplicationError

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
17 4


Summary

Methods
DateListClose DateListExecute DateListFetch DeleteByDate
DeleteByError DeleteByNamespace ErrorDetailClose ErrorDetailExecute
ErrorDetailFetch ErrorListClose ErrorListExecute ErrorListFetch
GetComment NamespaceListClose NamespaceListExecute NamespaceListFetch
SetComment


Methods

• classmethod DateListClose(ByRef qHandle As %Binary) as %Status
• classmethod DateListExecute(ByRef qHandle As %Binary, Namespace As %String) as %Status
• classmethod DateListFetch(ByRef qHandle As %Binary, ByRef Row As %List, ByRef AtEnd As %Integer = 0) as %Status
• classmethod DeleteByDate(Namespace As %String, DateList As %String) as %Status
Deletes all application errors for the dates passed in for a given namespace. Parameters:
Namespace - Namespace to delete errors in
DateList - Comma separated list of dates to delete, "6/4/2012,6/5/2012"
• classmethod DeleteByError(Nsp As %String, Date As %String, ErrorList As %String) as %Status
Deletes the application errors passed in for a given namespace and a given date. The input parameters are the namespace name, the date and a list of error numbers.
• classmethod DeleteByNamespace(NspList As %String) as %Status
Deletes all application errors for all dates for the namespaces passed in. The input parameter is a list of namespaces.
• classmethod ErrorDetailClose(ByRef qHandle As %Binary) as %Status
• classmethod ErrorDetailExecute(ByRef qHandle As %Binary, Namespace As %String, Date As %String, Error As %Integer, Type As %Integer) as %Status
• classmethod ErrorDetailFetch(ByRef qHandle As %Binary, ByRef Row As %List, ByRef AtEnd As %Integer = 0) as %Status
• classmethod ErrorListClose(ByRef qHandle As %Binary) as %Status
• classmethod ErrorListExecute(ByRef qHandle As %Binary, Namespace As %String, Date As %String) as %Status
• classmethod ErrorListFetch(ByRef qHandle As %Binary, ByRef Row As %List, ByRef AtEnd As %Integer = 0) as %Status
• classmethod GetComment(Namespace As %String, Date As %String, Error As %Integer = 0, ByRef Comment As %String, ByRef CommentDate As %String) as %Status
Read the comment in a selected error
• classmethod NamespaceListClose(ByRef qHandle As %Binary) as %Status
• classmethod NamespaceListExecute(ByRef qHandle As %Binary, ListType As %Integer = 0) as %Status
ListType = 0 - All namespaces 1 - Remote namespaces only 2 - Local namespaces only
• classmethod NamespaceListFetch(ByRef qHandle As %Binary, ByRef Row As %List, ByRef AtEnd As %Integer = 0) as %Status
• classmethod SetComment(Namespace As %String, Date As %String, Error As %Integer = 0, Comment As %String) as %Status
Set a comment into the selected error

Queries

• query DateList(Namespace As %String)
Selects Date As %Date, Qty As %Integer
Returns the dates when application errors occurred for a given namespace.
• query ErrorDetail(Namespace As %String, Date As %String, Error As %Integer, Type As %Integer = 0)
Selects Column1 As %String, Column2 As %String, Column3 As %String, Column4 As %String
Returns the logged Expressions and their corresponding Values (top level) for a given Namespace on a given Date for a particular Error. The Date has to be in display format (e.g. 1/1/09). Type: 0 = Expressions -1 = Stack Levels -2 = Collapsed stack levels i = Variables of Stack Level #i
• query ErrorList(Namespace As %String, Date As %String)
Selects Error # As %Integer, Error message As %String, Time As %String, Process As %String, DisplayPID As %String, Username As %String, Code line As %String
Returns the errors logged for a given Namespace on a given Date. The Date has to be in display format (e.g. 1/1/09).
• query NamespaceList(ListType As %Integer)
Selects Namespace As %String
Returns the Namespaces that contain application errors.


Copyright (c) 2019 by InterSystems Corporation. Cambridge, Massachusetts, U.S.A. All rights reserved. Confidential property of InterSystems Corporation.