Move ClientError into shared widget/server exports