Your browser does not support HTML5 canvas. Fork me on GitHub

Available Packages:

ErrorHandling

Source

int MUTE_ERROR_DURATION

Source

string lastError

Source

Stores the last error thrown by error(). This error can be inspected when using try() from package Execute.

boolean suppressErrorMessages

Source

Allows you to suppress error output. This is primarily useful when you catch an error with try().

function error(string msg)

Source

error handing function. This function is used by libraries and for internal Wurst errors like accessing a null-pointer. Overwrite this function to customize error handling. Outputs an error message and terminates the current thread. There is a compiler flag to augment the error messages with stack traces. Error messages can also be disabled. Errors are only displayed once every MUTE_ERROR_DURATION seconds. To achieve this, the hash of the string is saved in a hashtable together with a timestamp. You can also use try() from package Execute to handle an error happening in a callback.