When using Eclipse validator, it seems that the keywords "finally" and "catch" are not allowed:
$http.get(url)
.success(function (data) {
// Handle data
})
.error(function (data, status) {
// Handle HTTP error
})
.finally(function () {
// Execute logic independent of success/error
});
The validator indicates a syntax error on line 8 (.finally...) with the message "Syntax error on token 'finally', Identifier expected". Removing the finally block resolves the error.
Is there a way to inform Eclipse that this is not an error without disabling the entire validation process?
Regards, Bytecounter