protected bool TryHandleException(IHttpContext ctx, Exception exception)
{
var indexDisabledException = exception as IndexDisabledException;
if (indexDisabledException != null)
{
HandleIndexDisabledException(ctx, indexDisabledException);
return true;
}
var indexDoesNotExistsException = exception as IndexDoesNotExistsException;
if (indexDoesNotExistsException != null)
{
HandleIndexDoesNotExistsException(ctx, indexDoesNotExistsException);
return true;
}
return false;
}