Read my post here, basically, if your code causes this, reading the stack trace here
C:\Users*User*\AppData\Local\Unity\Editor\Editor.log
should give you more information on what is causing this. Of course that requires you to reproduce the error in the editor