Reflect API error types in dxpy exception hierarchy