blob: a9add77f0b2ea2ad54191514ef3d89e9e131d482 [file] [log] [blame]
// Copyright 2015 The Vanadium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
const String existsErrorId = 'v.io/v23/verror.Exist';
// TODO(aghassemi): Export mojo.Error in Syncbase and use the type here.
bool isExistsError(e) {
return e != null && (e.id == existsErrorId);
}