made ErrorCode.toError() public for subclasses of Store