Fork me on GitHub

Now on: joopl.Environment

Represents a set of environmental values and operations

Properties

Methods

notifyException

(
  • exception
)

Defined in src\joopl.js:1414

Notifies a given exception to all subscribers

Parameters:

Example:

$global.joopl.Environment.current.notifyException(someException);

Properties

current

Environment static

Defined in src\joopl.js:1428

Gets current Environment instance

Events

exceptionThrown

Defined in src\joopl.js:1398

Occurs when any exception of any type is thrown within current application

Event Payload:

Example:

// Listening exceptions...
$global.joopl.Environment.current.exceptionThrown.addEventListener(function(e) {
    var exception = e.thrownException;
});

// Raising the event...
$global.joopl.Environment.current.notifyException(someException);