In 1.6.x, a dynamic exception should be created that extends `CypherException`. So you should be able to check that the name matches `MissingIndexException`.