Setting of Editor warnings

Hi,
Is there any way to set warnings or errors,Manually for natural one Editor.

For suppose we have syntax error which were already defined. So want to place some of my own errors in the system to check while editing the code.