function someAsyncFunction(a, b, callback) {
    setTimeout(function(){
        callback('something went wrong');
    }, 1000)
}
This example shows how you can deal with exceptions handling with Sync library