Skip to content

Asynchronous Exception handling API #6

Open
@herzi

Description

@herzi

I saw that you've been starting to work on a v2-API for the binding code, please also change the signature of the callback to make this possible:

bind.toFile2('path/to/template', {template: parameters}, function (error, result) {
    if (error) {
        return myErrorHandler(error);
    }

    /* plain old result handling code */
});

This will provide developers with the possibility to actually catch asynchronous exceptions very easily.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions