Displaying custom error messages in compiler output form.

Hi All,

I am trying to display custom error messages in the compiler output form.

SysCompileroutput output;

Error error;

output = infolog.compilerOutput();

output.compilerOutputMessage(‘Custom Message 1’, 66, 1, 2, 3, ‘Just a try’, ‘Method name’, SysCompilerOutputTab::Error);

When i try this i am not able to get the error text in the description.

The reason is Compiler output is trying to get the error text basing on the error code.

Here the code Error code is 66. Which is not defined.

So I need to create an error code first and then display the error text.

Could anyone of you please give me an idea in creating the error code.

Thank you in advance.