Now on: joopl.Environment
Represents a set of environmental values and operations
Properties
- current static
Events
Methods
notifyException
(
-
exception
Notifies a given exception to all subscribers
Parameters:
-
exception
joopl.ExceptionThe exception to be notified
Example:
$global.joopl.Environment.current.notifyException(someException);
Properties
current
Environment
static
Gets current Environment instance
Events
exceptionThrown
Occurs when any exception of any type is thrown within current application
Event Payload:
-
thrownException
joopl.ExceptionThe exception that has been thrown
Example:
// Listening exceptions...
$global.joopl.Environment.current.exceptionThrown.addEventListener(function(e) {
var exception = e.thrownException;
});
// Raising the event...
$global.joopl.Environment.current.notifyException(someException);