"Uncaught [object Object]" when throw and catch
<p>I have a little JS problem, when I throw an exception in a $.getJSON, this exception is not catched by the parent function and I have a JS error ..</p>

<p>Chrome's console returns me that : </p>

<pre><code>Uncaught [object Object]
(anonymous function) @ ConfLoader.class.js:24
j                    @ jquery.min.js:2
k.fireWith           @ jquery.min.js:2
x                    @ jquery.min.js:4
(anonymous function) @ jquery.min.js:4
</code></pre>

<p>I have many other throw and try/catch and I have not this problem .. 
Can you explain me why ?</p>

<p>Here is my ConfLoader "class" :</p>

<pre><code>var ConfLoader = {
    /* Attributes */
    apiToken : null,
    lavaBaseURL : null,
    apiURL : null,

    /* Init method */
    load : function(file) {
        $.getJSON(file, function(data) {
            if (data.apiToken)
                this.apiToken = data.apiToken;
            else
                throw new Exception("Token API (apiToken) not found into config file.");
            if (data.lavaBaseURL)
                this.lavaBaseURL = data.lavaBaseURL;
            else
                throw new Exception("Lava URL (lavaBaseURL) not found into config file.");
            if (data.apiURL)
                this.apiURL = data.apiURL;
            else
                throw new Exception("API URL (apiURL) not found into config file.");
        })
        .fail(function() {
            throw new Exception("File '"+file+"' not found.");
        });
    },

    /* Methods */
    getApiToken : function () {
        return this.apiToken;
    },
    getLavaBaseURL : function () {
        return this.lavaBaseURL;
    },
    getApiURL : function () {
        return this.apiURL;
    }
}
</code></pre>

<p>And the line "throw new Exception("File '"+file+"' not found.");" throw me a JS error .. But I catch this exception here when I cann ConfLoader's method "load" :</p>

<pre><code>var Powers = {
    /* Attributes */
    confLoader : null,

    /* Methods */
    init : function(configFile) {
        try {
            this.confLoader = ConfLoader.load(configFile);
        } catch (e) {
            throw e;
        }
    },
    launch : function() {
        try {

        } catch (e) {

        }
    }
}
</code></pre>

<p>"Exception" class is a custom Exception class which works for other throw :</p>

<pre><code>function Exception(msg, fatal) {
    this.message = msg;
    this.fatal = fatal;

    this.isFatal = function() {
        return this.fatal;
    }
    this.getMessage = function() {
        return this.message;
    }
    return this;
}
</code></pre>

<p>Thank you ! :)</p>