fix import folding
DASHB-564: Use proper exception types in Analytics API