All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.resources.bower_components.globalize.src.common.create-error.js Maven / Gradle / Ivy

There is a newer version: 0.66.0.1
Show newest version
define([
    "./format-message",
    "../util/object/extend"
], function (formatMessage, objectExtend) {

    return function (code, message, attributes) {
        var error;

        message = code + (message ? ": " + formatMessage(message, attributes) : "");
        error = new Error(message);
        error.code = code;

        objectExtend(error, attributes);

        return error;
    };

});




© 2015 - 2024 Weber Informatics LLC | Privacy Policy