The events that returns an error have a JSON object wich has this structure:
var data=
{
code: int,
message: string
}
onError
When is executed a method while on a non valid state.
function onError(data) {
console.log("onError", data);
createTrigger.trigger("onEventError", { errorCode: data, type: "onError" });
}