[code] Error raising scriptlets for testing

[code] Error raising scriptlets for testing

Postby Dan Rathbun » Tue Mar 29, 2011 9:30 pm


[ code ] Error raising scriptlets for testing purposes.

Here's a collection of scriptlets that raise errors when you load them. They each only have one line of code:
Code: Select all
raise(Exception,"This is a test error raised by '#{__FILE__}'") 

Load these scripts from one of your scripts or plugins, in order to test
what happens when exceptions are raised.

Helps you refine your rescue clauses, to trap all errors correctly. (I made them to test loading scripts from Ruby Console Plugins.)

I have them in a subfolder called Plugins/test/error so you'll see the zip folder is named "error", but you can put the error folder anywhere you wish (ex: a subfolder named "Plugins/dev".)

Each file is named after the exact Ruby Exception class, Ex: "SyntaxError.rb"
0


Last bumped by Dan Rathbun on Tue Mar 29, 2011 9:30 pm.
    I'm not here much anymore. But a PM will fire email notifications.
    User avatar
    Dan Rathbun 
    PluginStore Author
    PluginStore Author
     

    SketchUcation One-Liner Adverts

    by Ad Machine » 5 minutes ago



    Ad Machine 
    Robot
     


     

    Return to Developers' Forum

    Who is online

    Users browsing this forum: No registered users and 8 guests