/** | |
* Position error object | |
* | |
* @constructor | |
* @param code | |
* @param message | |
*/ | |
var PositionError = function(code, message) { | |
this.code = code || null; | |
this.message = message || ''; | |
}; | |
PositionError.PERMISSION_DENIED = 1; | |
PositionError.POSITION_UNAVAILABLE = 2; | |
PositionError.TIMEOUT = 3; | |
module.exports = PositionError; |