How to display a message with variables in the "throw error"

Pls tell me how to display the variable in the throw error message in AX2012

Try this code

str test = “hello”;

throw error(strFmt(“Error is %1”,test));