How to crash an RPG Maker MV game intentionally?

I want to get RPG Maker MV to crash/throw up an authentic error message for a part of a game. How can I do this?
To be clear, I don't want to simulate a crash -- I want a genuine crash that'll put up an error message, and one that would be able to triggered at a certain point during gameplay.
Thanks!
@Aeonex You could use 'throw'

Code:
throw new Error("Now you've done it ... ");
@Aeonex You could use 'throw'

Code:
throw new Error("Now you've done it ... ");

Thanks!
I put it in a script command and it didn't do anything. Am I doing something wrong?
@Aeonex Hmm, are you using Yanfly Engine Core?
@Aeonex Hmm, are you using Yanfly Engine Core?
Yes, I just tried it on a brand new project and it worked.
@Aeonex Yanfly Engine Core will attempt to catch and handle any error, unfortunately.
@Aeonex Yanfly Engine Core will attempt to catch and handle any error, unfortunately.
Ahh, I see. Any way to continue using it and still have the errors?
@Aeonex Yes, although that would mean commenting out some code that is built-in to the plugin. There is no switch to disable the error protection. Comment out line 1849 through 1862 in the Yanfly Engine Core plugin. That should allow for Script Command errors.
@Ossra Thank you

Original thread: https://forums.rpgmakerweb.com/threads/how-to-crash-an-rpg-maker-mv-game-intentionally.115625/