XSLT 3.0 allows for the use of an @error-code attribute on xsl:message elements. This wiki page lists error coditions of ATOP and assigns error codes.
@error-code
xsl:message
moduleRef
@except
@include
@source
There was an error while loading. Please reload this page.