proto: typed errors