DASHB-564: Use proper exception types in Analytics API