0.0.1 • Published 8 years ago

msda-errors-client v0.0.1

Weekly downloads
4
License
-
Repository
-
Last release
8 years ago

#error-service-client

#config

var ErrorModule = require("msda-errors-client");

var config = {
    host: "bl.msda.ge",
    port: 3033,
    path: "/api/"
}

#loadErrors

err.load(function (err, res) {
    //console.log(err, res);
});

#getError

//@keyword String "error kayword"
//@error Object/String is optional
//returns an array
err.getError(["UNHANDLED_EXCEPTION", "USER_ID_REQUIRED"]);