Enonic version: 6.9.2
OS: Mac
How do I catch Java error in my js controllers?
This code:
if (e instanceof com.enonic.xp.repo.impl.repository.RepositoryAlreadyExistException)
Gives me this error:
TypeError: instanceof must be called with a javascript or java object as the right-hand argument (com.enonic.xp.resource.ResourceProblemException)