Information: {role} ‘{name}’ is never read
An assignment the body never reads that it cannot drop: the variable a Catch names,
which the documentation prefers to a bare Catch {, or a formal argument of a method that
overrides one, whose signature it keeps (A1841). IRIS compiles and runs the code; IRIS’s own
classes leave a Catch variable unread in most of their handlers. Nothing needs changing;
the information says the value goes unused.
IRIS compiles the example.
Class Demo.UnreadRequired Extends %Persistent
{
Method %OnBeforeSave(insert As %Boolean) As %Status //! A4269
{
Try { Set ^Demo("saved") = $Horolog } Catch ex { Return $$$OK } //! A4269
Return $$$OK
}
}