raise Exception.Create('uhoh, spaghetti-o');
But I'm not sure if it's possible to actually do this inside of the scripting engine.
Technically, different exceptions should be created by creating a class that inherits from Exception, such as ETooMuchSauce. Again, not sure if this is possible from with the scripting engine.