I have also used this style for other programs in BRAINSStandAlone. As I remember, this macro does not print its message directly. It provides its message for the exception object that is named here err. I should search more about this to be completely sure.