function WmataApiError(msg, statusCode){
    this.name = 'WmataApiError';
    this.msg = msg || '';
    this.statusCode = statusCode;
}

WmataApiError.prototype = Error.prototype;

WmataApiError.prototype.setMessage = function(msg){
    this.msg = msg;
}

module.exports = WmataApiError;

function WmataApiError(msg, statusCode, url){
    this.name = 'WmataApiError';
    this.message = msg || '';
    this.statusCode = statusCode;
    this.url = url;
}

WmataApiError.prototype = Error.prototype;

WmataApiError.prototype.setMessage = function(msg){
    this.msg = msg;
}

module.exports = WmataApiError;

Include requested URL as part of error object.
Include requested URL as part of error object.
