title: Display custom error message in Dynamics AX 2012
body: <p>I'm new in AX and want to know how to display custom error message or warning. I have looked for the solution and found out following in an <i>msdn</i> link;</p>
  
  <blockquote>
    <p>You can optionally display a custom error message in a dialog of the Web application by having your plug-in throw an <b>InvalidPluginExecutionException</b> exception with the custom message as the Message property value.</p>
  </blockquote>
  
  <p>But I have no idea how to use it. </p>
  
  <p>can <a href="http://kamalblogs.wordpress.com/2011/05/05/creating-a-custom-compiler-output-type-and-displaying-in-the-compiler-output-in-dynamics-ax-2009/" rel="nofollow">this link</a> be helpful in achieving this task? </p>